Bug in network interface and switch port discovery?

CMK version: 2.1.0p18
OS version: RHEL 8

We have the following discovery rule (goal is to use the switch port description for the services):

This rule is working fine and all ports are created with the description (e.g. “Interface GigabitEthernet0/0”, “Interface GigabitEthernet0/1”, …).

But, as soon as we add an additional condition (e.g. “Match interface description”), all the ports are then created by the index only (service/item name then is “Interface 01”, “Interface 02”, …)!

So… is this a bug? Or, what am I doing wrong?

Thanks!
Christian

Hi!
I followed this DOKU Network Monitoring with Checkmk: 3 rules to rule them all | Checkmk and got the result that i can search in “Summary” of Service for (example VLAN110). Is that what you are looking for?
Best regards

Hi,
my rule:

… and the result:

Karl

Thanks for your response! Just a question: what happens if you add a second condition? With only 1 condition, it’s also working fine here but as soon as we add a 2nd, it fails.

Hi,
I modified the rule:

The same result as before.

Karl

and you are using the same CheckMK version (2.1.0p18)? then something is strange here :slight_smile:

Thanks for testing!
Christian

Hi,

omd sites kurs2
kurs2            2.1.0p18.cee

Karl

Ok, so… what are we doing wrong here?

I’ve added some logging to interfaces.py to see what params are provided when the items are discovered and with only 1 condition the value of “item_appearance” is correct (“descr”) but when I add another condition, the value of “item_appearance” is always “index”…

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.