Hi All,
I need some help cause I dont understand the config setup for the distributed pollers on the docs page.
I have two servers running a full install of LibreNMS
Server 1 (Main server where I use the Web Interface) 1.1.1.1 (This server is in another country)
Server 2 (This Server should only poll devices I assign to it) 2.2.2.2 (This Server is in my Country)
Here is where I need some clarification.
on what server should this config be on (/opt/librenms/config.php)
$config['distributed_poller_name'] = php_uname('n');
$config['distributed_poller_group'] = 'x';
$config['distributed_poller_memcached_host'] = "xx.xx.xx.xx";
$config['distributed_poller_memcached_port'] = 11211;
$config['distributed_poller'] = true;
$config['rrdcached'] = "xx.xx.xx.xx.xx:42217";
$config['rrdcached'] = "unix:/run/rrdcached.sock";
some clarification for you.
rrdcached is installed on both my servers aswell as memcached.
/etc/default/rrdcached
DAEMON=/usr/bin/rrdcached
DAEMON_USER=librenms
DAEMON_GROUP=librenms
WRITE_THREADS=4
WRITE_TIMEOUT=1800
WRITE_JITTER=1800
BASE_PATH=/mnt/data-01/rrd
JOURNAL_PATH=/var/lib/rrdcached/journal/
PIDFILE=/run/rrdcached.pid
SOCKFILE=/run/rrdcached.sock
SOCKGROUP=librenms
BASE_OPTIONS=ā-B -F -Rā
/etc/memcached.conf
-d
-m 64
-p 11211
-u memcache
-l xx.xx.xx.xx
if anyone can assist me would be great.
Server1 validate
====================================
Component Version LibreNMS 1.60-52-gc136e1ad6 DB Schema 2020_02_10_223323_create_alert_location_map_table (159) PHP 7.2.27-6+ubuntu18.04.1+deb.sury.org+1 MySQL 10.1.44-MariaDB-0ubuntu0.18.04.1 RRDTool 1.7.0 SNMP NET-SNMP 5.7.3 ==================================== [OK] Composer Version: 1.9.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
Server2 validate
====================================
Component Version LibreNMS 1.60-56-g40cac40ae DB Schema 2020_02_10_223323_create_alert_location_map_table (159) PHP 7.2.27-6+ubuntu18.04.1+deb.sury.org+1 MySQL 10.1.44-MariaDB-0ubuntu0.18.04.1 RRDTool 1.7.0 SNMP NET-SNMP 5.7.3 ==================================== [OK] Composer Version: 1.9.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Some devices have not completed their polling run in 5 minutes, this will create gaps in data.