Fresh install and discovery not working with ditributed poller

Greetings,
I just completed a fresh install of Librenms. Setup is as follows:

3 VM Nodes

Node 1 (GUI, MySQL, RRD) Poller Group 0
Node 2 Poller Group 0,1,2
Node 3 Poller Group 0,1,2

Setup uses Dispatcher Service with watchdog

Ratio is, Group 0 will have all “mission critical” devices, other groups either best effort or test devices.

When adding devices, and by using rediscover device, no cpu/storage/health monitor appears.
It seems that something goes wrong in discovery.php while matching poller group:

LibreNMS Discovery

SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.58ms] 
  

SQL[select count(*) as aggregate from `migrations` [] 0.38ms] 
  

SQL[select version() [] 0.55ms] 
  

===========================================
Component | Version
--------- | -------
LibreNMS  | 24.6.0-25-gafba58cb2 (2024-06-27T20:04:06+02:00)
DB Schema | 2024_04_29_183605_custom_maps_drop_background_suffix_and_background_version (294)
PHP       | 8.2.20
Python    | 3.11.2
Database  | MariaDB 10.11.6-MariaDB-0+deb12u1
RRDTool   | 1.7.2
SNMP      | 5.9.3
===========================================
DEBUG!

Updating os_def.cache  

SQL[SELECT * FROM `devices` WHERE disabled = 0 AND `hostname` LIKE '10.41.9.3' AND poller_group IN(1) ORDER BY device_id DESC [] 0.82ms] 
  

/opt/librenms/discovery.php 10.41.9.3 2024-06-28 08:57:22 - 0 devices discovered in 0.282 secs  


SNMP [0/0.00s]:   
SQL [5/0.03s]: Select[5/0.03s]  

RRD [0/0.00s]:   


This particular device is in poller_group_0.
If i remove this lines from discovery.php it all starts working again (even if it is wrong):

//if (! empty(\LibreNMS\Config::get('distributed_poller_group'))) {
//    $where .= ' AND poller_group IN(' . \LibreNMS\Config::get('distributed_poller_group') . ')';
//}

Help on this is much apreciated.

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.