Hello,
I have installed librenms based on the instruction provided on the website. The problem I have is that the automatic discovery is not working and I get 2 errors when validating the config:
FAIL: No active polling method detected
FAIL: No active python wrapper pollers found
below are some logs
[[email protected] ~]$ cat /etc/cron.d/librenms
33 */6 * * * librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
-
-
-
-
- librenms /opt/librenms/alerts.php >> /dev/null 2>&1
-
-
-
*/5 * * * * librenms /opt/librenms/poll-billing.php >> /dev/null 2>&1
01 * * * * librenms /opt/librenms/billing-calculate.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1
Daily maintenance script. DO NOT DISABLE!
If you want to modify updates:
Switch to monthly stable release: Choosing a release - LibreNMS Docs
Disable updates: Updating - LibreNMS Docs
19 0 * * * librenms /opt/librenms/daily.sh >> /dev/null 2>&1
[[email protected] ~]$ ./validate.php
Component | Version |
---|---|
LibreNMS | 23.5.0-6-g2b3575a5e (2023-05-24T23:21:54+03:00) |
DB Schema | 2023_05_12_071412_devices_expand_timetaken_doubles (252) |
PHP | 8.1.19 |
Python | 3.9.16 |
Database | MariaDB 10.5.16-MariaDB |
RRDTool | 1.7.2 |
SNMP | 5.9.1 |
=========================================== |
[OK] Composer Version: 2.5.7
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
[[email protected] ~]$
./discovery.php -h HOSTNAME -d | ./pbin.sh
LibreNMS Discovery
SQL[[1;33mselect migration
from migrations
order by id
desc limit 1 [0;33m[][0m 1.11ms]
SQL[[1;33mselect count(*) as aggregate from migrations
[0;33m[][0m 0.96ms]
SQL[[1;33mselect version() [0;33m[][0m 0.52ms]
===========================================
Component | Version |
---|---|
LibreNMS | 23.5.0-6-g2b3575a5e (2023-05-24T23:21:54+03:00) |
DB Schema | 2023_05_12_071412_devices_expand_timetaken_doubles (252) |
PHP | 8.1.19 |
Python | 3.9.16 |
Database | MariaDB 10.5.16-MariaDB |
RRDTool | 1.7.2 |
SNMP | 5.9.1 |
=========================================== | |
DEBUG! | |
Updating os_def.cache | |
SQL[[1;33mSELECT * FROM devices WHERE disabled = 0 AND hostname LIKE ‘192.168.100.1’ ORDER BY device_id DESC [0;33m[][0m 1.31ms] |
./discovery.php 192.168.100.1 2023-05-25 11:50:31 - 0 devices discovered in 0.264 secs
[0;36mSNMP[0m [0/0.00s]:
[1;33mSQL[0m [5/0.05s]: Select[5/0.05s]
[0;32mRRD[0m [0/0.00s]:
[lib[email protected] ~]$ ./poller.php -h 192.168.100.1 -r -f -d | ./pbin.sh
LibreNMS Poller
SQL[[1;33mselect migration
from migrations
order by id
desc limit 1 [0;33m[][0m 1.13ms]
SQL[[1;33mselect count(*) as aggregate from migrations
[0;33m[][0m 0.74ms]
SQL[[1;33mselect version() [0;33m[][0m 0.72ms]
===========================================
Component | Version |
---|---|
LibreNMS | 23.5.0-6-g2b3575a5e (2023-05-24T23:21:54+03:00) |
DB Schema | 2023_05_12_071412_devices_expand_timetaken_doubles (252) |
PHP | 8.1.19 |
Python | 3.9.16 |
Database | MariaDB 10.5.16-MariaDB |
RRDTool | 1.7.2 |
SNMP | 5.9.1 |
=========================================== | |
DEBUG! | |
Updating os_def.cache | |
Starting polling run: |
SQL[[1;33mSELECT * FROM devices
WHERE disabled
= 0 AND hostname
= ‘192.168.100.1’ ORDER BY device_id
ASC [0;33m[][0m 1.39ms]
./poller.php 192.168.100.1 2023-05-25 11:53:39 - 0 devices polled in 0.231 secs
[0;36mSNMP[0m [0/0.00s]:
[1;33mSQL[0m [5/0.05s]: Select[5/0.05s]