Hello.
I’m struggling for two days to run the distributed polling with no luck.
Two ubuntu servers, (both 16.04, separately Librenms on both works fine)
ubuntuS1 - main server and a poller, it’s IP: 192.168.100.23
root@ubuntuS1:/opt/librenms# php validate.php
====================================
Component | Version |
---|---|
LibreNMS | 1.30.01-84-gb132686 |
DB Schema | 204 |
PHP | 7.0.22-0ubuntu0.16.04.1 |
MySQL | 10.0.31-MariaDB-0ubuntu0.16.04.2 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Database connection successful
[OK] Database schema correct
ubuntuHP - should be distributed poller
root@ubuntuHP:/opt/librenms# php validate.php
Component | Version |
---|---|
LibreNMS | 1.30.01-84-gb132686 |
DB Schema | 204 |
PHP | 7.0.22-0ubuntu0.16.04.1 |
MySQL | 10.0.31-MariaDB-0ubuntu0.16.04.2 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller has not run in the last 5 minutes, check the cron job
[FAIL] Discovery has never run, check the cron job
[WARN] Some devices have not been polled in the last 5 minutes.
You may have performance issues. Check your poll log and see: http://docs.librenms.org/Support/Performance/
ubuntuhp
config.php from ubuntuS1 (server, main host)
#########################
$config[‘db_host’] = ‘localhost’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘librenms’;
$config[‘db_pass’] = ‘password’;
$config[‘db_name’] = ‘librenms’;
$config[‘db_socket’] = ‘’;
$config[‘rrdtool_version’] = ‘1.5.5’;
$config[‘user’] = ‘librenms’;
$config[‘memcached’][‘enable’] = TRUE;
$config[‘memcached’][‘host’] = “192.168.100.23”;
$config[‘memcached’][‘port’] = 11211;
$config[‘snmp’][‘community’] = array(“public”);
$config[‘show_services’] = 1;
$config[‘rrdcached’] = “192.168.100.23:42217”;
$config[‘rrd_dir’] = “/opt/librenms/rrd”;
###########
Here is config from ubuntuHP
#########################
$config[‘db_host’] = ‘localhost’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘librenms’;
$config[‘db_pass’] = ‘password’;
$config[‘db_name’] = ‘librenms’;
$config[‘db_socket’] = ‘’;
$config[‘user’] = ‘librenms’;
$config[‘distributed_poller’] = true;
$config[‘distributed_poller_name’] = “ubuntuhp”;
$config[‘distributed_poller_group’] = ‘2’;
$config[‘distributed_poller_memcached_host’] = ‘192.168.100.23’;
$config[‘distributed_poller_memcached_port’] = 11211;
$config[‘rrdcached’] = “192.168.100.23:42217”;
$config[‘rrd_dir’] = “/opt/librenms/rrd”;
$config[‘snmp’][‘community’] = array(“public”);
###############
- rrd cached is run:
/usr/bin/rrdcached -B -L -w 1800 -z 1800 -b /opt/librenms/rrd/ -j /var/lib/rrdcached/journal/ -G librenms -U librenms -p /var/run/rrdcached.pid -g -F
(it’s run on foreground, i can see what is happening) - rrdcached works OK for ubuntuS1
Device (basic localhost, ubuntuhp) is added via GUI on ubuntuHP (poller)
Problem:
When i manually run poller on ubuntuhp (the second serv which should be dist.poller)
./poller.php -h ubuntuhp -d -v
i get such output on ubunts1 on rrdcached window:
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/uptime.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/poller-perf-os.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/poller-perf-ipmi.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/poller-perf-sensors.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/poller-perf-processors.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/poller-perf-mempools.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/poller-perf-storage.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/netstats-ip.rrd) failed.
handle_request_update: stat (/opt/librenms/rrd/ubuntuhp/netstats-tcp.rrd) failed.
… and so on.
And the actual rrd folder of ‘ubuntuhp’ is created NOT on ubuntus1 (server, 192.168.100.23) but on the poller itself ubuntuhp - thus like there is no distributed polling switched on. Yes, ubuntuhp tries to communicate via rrdcached but it creates everything locally…
Running discovery.php didn’t create all the rrd files (if it should?)
So, i’m stucked.
Is the configuration ok?
Should i use NFS or common file system between them? (i have understanding that it’s optional…)
What else have i missed?
How can i troubleshoot the issue to find the root cause?
Thank you a lot!