I have LibreNMS installed on a Virtual 4 core Ubuntu and have added 22 Mikrotik Devices including the Ubuntu itself.
At the start everything worked quite fine, however over time the graphs started to get gaps and most of the graphs now dont have any data at all anymore. Some devices are declared as offline as well, beside that ping is below 10ms to all of them. Polling interval is set to 180s as the poller time varies between 70 and 120 seconds. I still get syslogs from the “offline” devices as well.
A Config Validation tells me, that I’m probably having performance issues because some devices have not been polled in the last minutes (yeah it seems so, right?)
What it also says is:
Fail: We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
sudo chown -R librenms:librenms /opt/librenms sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/ sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
I have done this and it was gone, however it just came back writing that question.
I have tried to install rrdcached just as the instructions tell for ubuntu 16 (https://docs.librenms.org/Extensions/RRDCached/) but when I set " $config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”; " in librenms/config.php, graphs just stop working at all and say “Error drawing graph”. When I comment it out, it works again as previously.
Do you have an idea what to check further?
I have run the Fix above again and Validation again is fine except:
Warning: Your local git contains modified files, this could prevent automatic updates.
You can fix this with ./scripts/github-remove
Doing this gets me the following output:
github-remove: error: one of the arguments -d/–discard -s/–save -r/–restore is required
I cant find which one makes the most sense and I dont want to delete something important.