Hi, I have been trying to set up the distributed poller for a while now and I’m not sure if I’m missing something or if it can’t be done for how I want to use it.
I have a second instance of Libre running with additional NICs because I want certain devices to only be added and polled on the secondary server, but still be connected to the primary server’s database.
If that’s not possible, my second option is to add all devices to my primary server, then have the certain devices use the secondary server for polling. Does LibreNMS recognize secondary NIC’s from a virtual server?
As for now, my primary server is not detecting my secondary server as a Libre server, even though I can ping it. Here’s my configurations for distributed polling that does not seem to be working.
Primary server: (Running Libre, MySQL, Apache, RRDTool 1.4.8, Memcached, RRDCached)
Database config
$config[‘db_host’] = ‘localhost’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘myuser’;
$config[‘db_pass’] = ‘mypassword’;
$config[‘db_name’] = ‘mylibredb’;
$config[‘db_socket’] = ‘’;
$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;
*** Distributed Poller Settings
$config[‘distributed_poller’] = true;
$config[‘distributed_poller_name’] = php_uname(‘n’);
$config[‘distributed_poller_group’] = ‘0’;
#$config[‘distributed_poller_memcached_host’] = ‘localhost’;
#$config[‘distributed_poller_memcached_port’] = ‘11211’;
#$config[‘rrdcached’] = “localhost:42217”;
#$config[‘update’] = 0;
Secondary Server: Running LibreNMS, MySQL, Apache, RRDTool 1.4.8. (memcached and rrdcached are installed but I have stopped the services)
Database config
$config[‘db_host’] = ‘localhost’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘myuser’;
$config[‘db_pass’] = ‘mypassword’;
$config[‘db_name’] = ‘mylibredb’;
#$config[‘db_socket’] = ‘’;
#$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;
Distributed Poller Configurations
$config[‘distributed_poller_name’] = php_uname(‘n’);
$config[‘distributed_poller_group’] = ‘1’;
$config[‘distributed_poller_memcached_host’] = “ip.ip.ip.ip (my primary server ip)”;
$config[‘distributed_poller_memcached_port’] = 11211;
$config[‘distributed_poller’] = true;
$config[‘rrdcached’] = “ip.ip.ip.ip (my primary server ip):42217”;
#$config[‘update’] = 0;
Both servers are using https. I dont know if that changes how I need to edit the poller configs.
I’ve also ran ./dist-poller.php -r on both servers.
Any help is greatly appreciated.