[Problem] Group Dynamic by range IP

Hello,

I’m having an equipment problem with a dynamic group.

Mikrotik routers are ignored in my case. (2 items)

I need help for add Mikrotik in a group please.

Equipement: 12 items

Group Dynamic: 10 items
Rules:

  • ipv4_networks.ipv4_network - Greater or equal - First IP range
  • ipv4_networks.ipv4_network - less or equal - Last range

Marc.

See How do I: Define a rule for an IP Range?

Probably best to try all other approaches to isolate them via os type, location, model, name fragments or something else if possible, but you can eventually get there with some numeric regexing probably.

Hello,

Can you explained more detail ?

thx

Marc.

I have a similar issue even with more basic

ipv4_addresses.ipv4_address LIKE ‘10.101.%’

dynamic group. It is mostly Ubiquiti AirOS devices, for some reason LibreNMS does not think that they match the query but difficult to see why as “Resolved IP” for every host always matches.

Maybe those devices don’t have anything in the ipv4_addresses table.

I don’t know exactly how addresses end up in there or how they are then associated to devices, but just so happens all mine do - a mix of random Cisco, Moxa, whitelabel APs etc.

Hopefully someone else knows a bit more about those internals.