Polling has stopped

Hi Guys

My poller has stopped working yesterday at 17:00
I added an entry to the /etc/cron.d/librenms file as “root” which I think is the issue (I know my mistake)

I have now removed that entry but cant figure out the issue and how to get it backup and running

librenms@htl-libre-nms:~$ ./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
librenms@htl-libre-nms:~$

librenms@htl-libre-nms:~$ ./validate.php

Component Version
LibreNMS 1.70.1-52-g4ba095853
DB Schema 2020_10_12_095504_mempools_add_oids (191)
PHP 7.4.3
Python 3.8.5
MySQL 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP NET-SNMP 5.8

====================================

[OK] Composer Version: 2.0.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
librenms@htl-libre-nms:~$

Any help would be great if you are able to point me in the correct direction

Thanks in advance

If I run

/opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1

as the libre user i get the below

ERROR OUTPUT:
Traceback (most recent call last):
File “/opt/librenms/discovery-wrapper.py”, line 185, in
logger = LNMS.logger_get_logger(LOG_FILE, debug=_DEBUG)
File “/opt/librenms/LibreNMS/library.py”, line 84, in logger_get_logger
file_handler, err_output = logger_get_file_handler(log_file)
TypeError: cannot unpack non-iterable bool object

STANDARD OUTPUT:
Cannot create logfile. Trying to obtain temporary log file.
Message: [Errno 2] No such file or directory: ‘/etc/cron.d/logs/discovery_wrapper.log’
Trying temporary log file in /tmp/LibreNMS.library.log
Cannot create temporary log file either. Will not log to file. Message: [Errno 13] Permission denied: ‘/tmp/LibreNMS.library.log’

Delete /tmp/LibreNMS.library.log

Check /opt/librenms/ for files owned by root and chown them to librenms

Thanks Jellyfrog

I have Deleted /tmp/LibreNMS.library.log and check all the files in /opt/librenms/ and they all belong to librenms

As a check I have run /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1 and I can see in the gui that the poller is green and running so it looks good

thanks again

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.