I'm having a hard time wrapping my head around a problem (maybe I'm taking the wrong approach).
I'd like to modify the standard "Template SNMP Interfaces" Discovery rule so that I can filter on both the ifName and ifOperStatus.
So if either of the filters matched (ifName matches a regex for a list of ifNames) or ifOperStatus is equal to 6 (notPresent), the interface would be excluded from discovery.
I've been able to create the regex, but I don't know what to put in the Macro field of the filter (B in attached screenshot) to match on ifOperStatus. Can someone point me in the right direction? Or is what I want not possible?
I'd like to modify the standard "Template SNMP Interfaces" Discovery rule so that I can filter on both the ifName and ifOperStatus.
So if either of the filters matched (ifName matches a regex for a list of ifNames) or ifOperStatus is equal to 6 (notPresent), the interface would be excluded from discovery.
I've been able to create the regex, but I don't know what to put in the Macro field of the filter (B in attached screenshot) to match on ifOperStatus. Can someone point me in the right direction? Or is what I want not possible?
Comment