I have the following configuration:
- One LibreNMS Web Server
- One Dedicated MariaDB, Redis, rrdcached server
- 3 Distributed Pollers
Only the 3 DPs are in IP space that is allowed to query SNMP devices. I’m not sure if I’m misunderstanding the capabilities of LibreNMS, but what I would like is for the 3 pollers to do all the SNMP, Ping, etc monitoring and the Web server be only a web server.
It’s working fine if the devices are already discovered, but when I want to add a device, the web server tries to do the discovery process instead of dispatching the job to one of the pollers. Is this expected behavior?
Here is some info about my setup:
./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 22.8.0
DB Schema | 2022_07_03_1947_add_app_data (244)
PHP | 8.1.9
Python | 3.9.2
Database | MariaDB 10.5.15-MariaDB-0+deb11u1
RRDTool | 1.7.2
SNMP | 5.9
====================================
[OK] Composer Version: 2.4.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] Redis is functional
[OK] rrdtool version ok
[OK] Connected to rrdcached
The next two commands have been run on Poller-3 (not the webend).
./discovery.php -h librenms-db-1.domain.net -d
LibreNMS Discovery
SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 1.54ms]
SQL[select count(*) as aggregate from `migrations` limit 1 [] 1.08ms]
SQL[select version() [] 1.1ms]
===================================
Version info:
Commit SHA: 6400f88752f8faa5321611f48b07cfa4dee16ce3
Commit Date: 1661442525
DB Schema: 2022_07_03_1947_add_app_data (244)
PHP: 8.1.9
Database: MariaDB 10.5.15-MariaDB-0+deb11u1
RRDTool: 1.7.2
SNMP: 5.9
==================================DEBUG!
Updating os_def.cache
SQL[SELECT * FROM `devices` WHERE disabled = 0 AND `hostname` LIKE 'librenms-db-1.domain.net' AND poller_group IN(1) ORDER BY device_id DESC [] 1.71ms]
./discovery.php librenms-db-1.domain.net 2022-08-26 08:06:03 - 0 devices discovered in 0.226 secs
SNMP [0/0.00s]:
SQL [5/0.07s]: Select[5/0.07s]
InfluxDB [0/0.00s]:
RRD [0/0.00s]:
./poller.php -h librenms-db-1.domain.net -r -f -d
LibreNMS Poller
SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 1.01ms]
SQL[select count(*) as aggregate from `migrations` limit 1 [] 0.84ms]
SQL[select version() [] 1.02ms]
===================================
Version info:
Commit SHA: 6400f88752f8faa5321611f48b07cfa4dee16ce3
Commit Date: 1661442525
DB Schema: 2022_07_03_1947_add_app_data (244)
PHP: 8.1.9
Database: MariaDB 10.5.15-MariaDB-0+deb11u1
RRDTool: 1.7.2
SNMP: 5.9
==================================DEBUG!
Updating os_def.cache
Starting polling run:
SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` = 'librenms-db-1.domain.net' ORDER BY `device_id` ASC [] 1.23ms]
./poller.php librenms-db-1.domain.net 2022-08-26 08:08:54 - 0 devices polled in 0.228 secs
SNMP [0/0.00s]:
SQL [5/0.05s]: Select[5/0.05s]