Hi
I have 2 VMS
1st VM - 192.168.0.11
This is server does everything, WebGui, DB, Alerts, discovery.
This is config of config.php
Database config
$config[‘db_host’] = ‘localhost’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘librenms’;
$config[‘db_pass’] = ‘xxxxxxxx’;
$config[‘db_name’] = ‘librenms’;
$config[‘db_socket’] = ‘’;
$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;
$config[‘rrdtool_version’] = 1.5;
Memcached
$config[‘memcached’][‘enable’] = true;
$config[‘distributed_poller_memcached_host’] = ‘localhost’;
$config[‘distributed_poller_memcached_port’] = ‘11211’;
Distributed poller
$config[‘distributed_poller’] = true;
2nd VM - 192.168.0.12
This server is only supposed to poll devices
This is config for config.php
Database config
$config[‘db_host’] = ‘192.168.0.11’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘librenms’;
$config[‘db_pass’] = ‘xxxxxxxxx’;
$config[‘db_name’] = ‘librenms’;
$config[‘db_socket’] = ‘’;
$config[‘rrdcached’] = “192.168.0.11:42217”;
$config[‘rrdtool_version’] = ‘1.5.5’;
Memcached
$config[‘memcached’][‘enable’] = true;
Distributed poller
$config[‘distributed_poller’] = true;
$config[‘distributed_poller_name’] = file_get_contents(’/etc/hostname’);
$config[‘distributed_poller_group’] = ‘0’;
$config[‘distributed_poller_memcached_host’] = “192.168.0.11”;
$config[‘distributed_poller_memcached_port’] = 11211;
$config[‘rrdcached’] = “192.168.0.11:42217”;
I would like to setup a 3rd and 4th VM as pollers later on.
I have installed memcached on both VMS by following the steps below:
apt-get install memcached
apt-get install php-memcached
systemctl restart apache2
Below is the config on the 1st VM for Memcached
memcached default config file
-d
logfile /var/log/memcached.log
-m 64
-p 11211
-u memcache
-l 192.168.0.11
Below is the config on the 2nd VM for Memcached
-d
logfile /var/log/memcached.log
-m 64
-p 11211
-u memcache
-l 127.0.0.1
Let me know if you require any other configuration information.