Graphs are not drawn

Hi,

all my graphs are not drawn any more.
First I had an issue with polling.
I have seen the graphs, but no values for the last 2 days (stoppen aroung 0:00 o’clock)
Looks like I fixed by changing

$config[‘db_host’] = ‘localhost’;

to

$config[‘db_host’] = ‘127.0.0.1’;

After about 30 minutes, graphs still not show up.
It even got worse, now the graph has not even be created.

Output of validate.php:

bash-4.2$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.63-94-g9ac05f4
DB Schema | 2020_04_13_150500_add_last_error_fields_to_bgp_peers (164)
PHP       | 7.2.14
Python    | 3.6.8
MySQL     | 5.5.65-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.10.6
[OK]    Dependencies up-to-date.


[OK]    Database connection successful
[OK]    Database schema correct

Webpage looks like following:

Anyone an idea what goes wrong?

In your validate, you have 2 blank lines between Dpendencies and Database connection. That mean something is wrong.

Manually run ./daily.sh and paste here the output.

Now it’s getting weird.

I switch to user “librenms”, but when running the script, it says user “librenms” does not exist?!?

[root@ciena-librenms librenms]# su librenms
bash-4.2$ ./daily.sh
id:
librenms: Einen solchen Benutzer gibt es nicht
WARNING: You should run this script as
librenms






Updating to latest codebase                        OK
id:
librenms: Einen solchen Benutzer gibt es nicht
WARNING: You should run this script as
librenms




Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
bash-4.2$

And again blank lines?!?

I saw that before.

So you have a weird character in your config.php file. You are not going to see it, (if you do, please tell everybody how) and as you cant see it, you dont know where is it so you have to redo your config.php manually.

1.- Backup your config cp config.php config.php.bak
2.- Start from a fresh configcp config.php.default config.php
3.- Modify your freshly new config.php with the data of the backup.

Thank you for the hint.

looks like I found the error.

Before the php opening tag ("<?php") there was a CR LF. I just saw it when configured Notepad++ to show me non printable chars.
Removing that char solved the issue.

Now the ./daily.sh looks like this:

bash-4.2$ ./daily.sh
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK
bash-4.2$

Now I’ll hope polling will also work again, but this would be another thread if so.

Thank you a lot!