Device Groups - Multiple Parameter Rules Stopped Working

Hi All

I have been using Device Groups for a while now and it’s made life a lot simpler for certain operations. Recently however, I had to add an additional parameter (devices.hostname, ends with, “ret” for instance) in a group with about 10 or so “rules” and it stopped working completely (returns with 0 devices). I removed the new parameter but that did not solve the issue. On creating a test group, it works fine if there is only one parameter, but as soon as I enter a 2nd it returns 0 devices. I have another device group which has also been there for some time, with 4 parameters set and it still continues to function as normal.

Any idea what could be causing this or how I can fault find this issue?

Validate gives a clean bill of health.

Component Version
LibreNMS 23.4.0 (2023-04-07T01:52:52+02:00)
DB Schema 2023_03_14_130653_migrate_empty_user_funcs_to_null (249)
PHP 8.1.2-1ubuntu2.11
Python 3.10.6
Database MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool 1.7.2
SNMP 5.9.1

Thanks,
R

Ok, so I had a senior moment it seems and switched the rule from “Or” to “And” and unfortunately my logic then led me even further astray … this parameter AND this parameter etc. instead of look for this parameter OR this parameter, which then looks for everything separately instead of one big hostname with EVERYTHING that I specified in it :see_no_evil:

My bad, won’t do that again.

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