I was modifying some permissions and ownership settings on my instance of librenems to try to get the weathermap plugin working and in the process it seems that the poller process got broken due to some of the permissions changes. Any ideas how to revert or resolve the changes?
The commands that got run when I was trying to get the weathermap plugin working:
sudo chcon -R -t httpd_cache_t /opt/librenms/html/plugins/Weathermap/configs/
sudo chmod -R 777 configs/
Shortly after running this I saw a sharp cutoff of data being graphed and the “devices not polled in 15 minutes” alert started popping up when reloading/loading any page on my instance. When I kicked the poller off manually, I did manage to get it to run through (most) of the devices, however through looking at poller logs, those devices aren’t being re-polled automatically after the manual poll.
I’m really not sure why you ignored all the default text when you created your post. It contains information people need to help you, please provide it.
====================================
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (libre-nms) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX] Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices: snip every device is in the list at the moment
and 546 more…
I just ran poller-wrapper.py manually and it was able to successfully poll through the entire set of devices I have in 280 seconds with no errors. I went back and recopied the librenms.nonroot.cron to /etc/cron.d to see if that would make a difference and the poller still doesn’t seem to be running.
This thread can be marked as resolved. For some reason my instance ran fine for weeks with ownership on /etc/cron.d/librenms being librenms:librenms , I chatted on discord with kkrumm and he helped me identify a permissions problem after looking through syslog on the system. Turns out that file needs to be root:root for ownership. Once this fix was made, polling resumed and looks to be going at a good clip now