Validation fail - **[FAIL] No active polling method detected** and **[FAIL] No active python wrapper pollers found**

[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]
[OK]    Database schema correct
[OK]    MySQl and PHP time match
**[FAIL]  No active polling method detected**
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
**[FAIL]  No active python wrapper pollers found**
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached

[email protected]:~$ /etc/cron.d/librenms.cron

/etc/cron.d/librenms.cron: line 3: 33: command not found

/etc/cron.d/librenms.cron: line 5: */5: No such file or directory

[email protected]:~$ cat /etc/cron.d/librenms.cron

#using this cron file requires an additional user on your system, please see install docs.

33 */6 * * * librenms librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1

*/5 * * * * librenm /opt/librenms/discovery.php -h new >> /dev/null 2>&1

*/5 * * * * librenms 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

#* * * * * librenms cd /opt/librenms/ && php artisan schedule:run >> /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

If I run librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1 and librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16 these two commands manually they run fine, but from librenms.cron file they end upfail

Kindly help

1st and 3rd line, username repeated twice
2nd line s is missing in librenms user

correct these errors and restart cron

Hi RR1

Thank you for your help. Its working now. I also did the below commands

cp /etc/php/8.1/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/librenms.conf
vi /etc/php/8.1/fpm/pool.d/librenms.conf

Change [www] to [librenms]:

[librenms]

ln -s /opt/librenms/lnms /usr/bin/lnms
cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
1 Like

Please, can you explain how you did, it doesn’t work for me

The above is the steps of command I used

I just switched into the official docker image of LNMS, i hope it will work

Hello,

I have the same problem, the cron file is original, someone help to correct this error please!

[email protected]:~$ ./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
Caching Mac OUI data                               OK
[email protected]:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 22.12.0-16-g437479382 (2023-01-12T09:13:08+01:00)
DB Schema | 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248)
PHP       | 8.1.10
Python    | 3.10.6
Database  | MariaDB 10.6.11-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.5.1
[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]
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[FAIL]  No active polling method detected
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[FAIL]  No active python wrapper pollers found
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached

Thanks

Regards