Poller Service - 60 sec

Hi,

when I try to configure:
$config[‘poller_service_poll_frequency’] = 60;
after restart (via systemctl restart librenms-poller-service.service ) in librenms.log still see 120sec interval.
How to reduce polling time to 60 sec?

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

Component Version
LibreNMS 1.39-6-g4140796
DB Schema 249
PHP 7.0.28-0ubuntu0.16.04.1
MySQL 5.7.21-20-log
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

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

[OK] Composer Version: 1.6.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

$config[‘distributed_poller_name’] = file_get_contents(’/etc/hostname’);
$config[‘distributed_poller_group’] = 1;
$config[‘poller_service_loglevel’] = “INFO”;
$config[‘poller_service_workers’] = 4;
$config[‘poller_service_poll_frequency’] = 60;
$config[‘poller_service_discover_frequency’] = 21600;
$config[‘poller_service_down_retry’] = 60;
$config[‘poller_service_retry_query’] = 1;
$config[‘poller_service_single_connection’] = false;
$config[‘poller_modules’][‘unix-agent’] = 1;

It’s in the cronjob you need to change it, follow this:

1 Like

I dont’t use a cron (only daily.sh and alerts are cron). We build this scenario:

so my crons look’s like this:
#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
15 0 * * * librenms /opt/librenms/daily.sh >> /dev/null 2>&1

          • 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

The poller service is Experimental and not recommend to use especially if you are trying to pull all of your devices in 60 seconds.
https://docs.librenms.org/#Extensions/Poller-Service/