I have installed librenms with:
1 x Master server
1 x slave(poller)
When I check the poller status I see the master and slave.
When I check the cluster master column for master and slave servers it indicates that they are both masters
So the question is, is the expected behavior?
Should the cluster master coloum for slave1 not be NO
How do I verify that the distributed poller setup is correct
Thanks
Here is the ./validate
Master
root@master:/opt/librenms# ./validate.php -g distributedpoller
Component |
Version |
LibreNMS |
1.56-44-ge40a33631 |
DB Schema |
2019_10_03_211702_serialize_config (145) |
PHP |
7.2.19-0ubuntu0.18.04.2 |
MySQL |
10.1.41-MariaDB-0ubuntu0.18.04.1 |
RRDTool |
1.7.0 |
SNMP |
NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
Checking distributedpoller: OK
[OK] Connection to memcached is ok
root@master:/opt/librenms#
Slave
root@slave1:/opt/librenms# ./validate.php -g distributedpoller
Component |
Version |
LibreNMS |
1.56-46-ga782efe7f |
DB Schema |
2019_10_03_211702_serialize_config (145) |
PHP |
7.2.19-0ubuntu0.18.04.2 |
MySQL |
10.1.41-MariaDB-0ubuntu0.18.04.1 |
RRDTool |
1.7.0 |
SNMP |
NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
Checking distributedpoller: OK
[OK] Connection to memcached is ok
root@slave1:/opt/librenms#
from the slave i can redis-cli
root@slave1:/opt/librenms# redis-cli -h 192.168.156.245
192.168.156.245:6379> AUTH password
OK
192.168.156.245:6379> ping
PONG
192.168.156.245:6379>
Try running the librenms-service.py from the cli and check the output. If it doesn’t say using redis for queues and locking, you have a misconfiguration.
Also make sure they are both pointing to the SAME redis and memcached servers.
Thanks That helped.
The last remaining issue I have is gaps in the graphs. I think that is related to my rrdcached configuration.
Is there a command I can run to test if the slave can reach the master with rrdcacehd?
Below is the configuration rrdcached.
SLAVE /etc/default/rrdcached
DAEMON=/usr/bin/rrdcached
DAEMON_USER=librenms
DAEMON_GROUP=librenms
WRITE_THREADS=4
WRITE_TIMEOUT=1800
WRITE_JITTER=1800
BASE_PATH=/opt/librenms/rrd/
JOURNAL_PATH=/var/lib/rrdcached/journal/
PIDFILE=/run/rrdcached.pid
SOCKFILE=/run/rrdcached.sock
SOCKGROUP=librenms
BASE_OPTIONS="-B -F -R"
NETWORK_OPTIONS="-L"
Slave config.php
$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;
$config[‘rrdcached’] = “192.168.156.245:42217”;
$config[‘rrdtool_version’] = ‘1.5.5’;
Master server /etc/default/rrdcached
DAEMON=/usr/bin/rrdcached
DAEMON_USER=librenms
DAEMON_GROUP=librenms
WRITE_THREADS=4
WRITE_TIMEOUT=1800
WRITE_JITTER=1800
BASE_PATH=/opt/librenms/rrd/
JOURNAL_PATH=/var/lib/rrdcached/journal/
PIDFILE=/run/rrdcached.pid
SOCKFILE=/run/rrdcached.sock
SOCKGROUP=librenms
BASE_OPTIONS="-B -F -R"
NETWORk_OPTIONS="-l 0:42217"
Master config.php
$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;
$config[‘rrdtool_version’] = ‘1.5.5’;
Thanks
I think I got it working.
Uh, again, you should have only ONE rrdcached server…