Ad Widget

Collapse

Filter Interfaces From Discovery?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nyjetfan
    Junior Member
    • Sep 2016
    • 5

    #1

    Filter Interfaces From Discovery?

    Hi All - I have several Cisco routers I'm monitoring that are terminal servers, and as such have 64 Async interfaces that I don't care to monitor. I have tried creating the regular expression with type "Character string not included" and the expression of "Async", so when it is an Async interface it is False and everything else is true.

    I have tried to call this iva a macro on the Discovery Rules Filter with the macro
    {#IFALIAS} matches @IFFILTER (IFFILTER is what my regular expression is named) yet its not filtering the Async interfaces from the discovery.

    Any ideas what I'm doing wrong here?
  • nyjetfan
    Junior Member
    • Sep 2016
    • 5

    #2
    So I've gotten things working partially, but some oddities are being seen.

    I have my regular expression type set to "Character string not included" and the Expression is set to "Async" (without the quotes)

    In the Discovery Rules for Network interfaces I have the following:
    SNMPv2 agent
    Key - ifType
    SNMP OID: discovery[{#SNMPVALUE},IF-MIB::ifType]
    SNMP Community - {$SNMP_COMMUNITY}

    And under the filters I have:
    Type of calculation - And (shouldn't matter as its one line)

    Macro {#SNMPVALUE} matches @IFFILTER (my regular expression name)

    My problem is this is also matching the Gigabit and Ethernet interfaces as well, and not just the Async ports, so its filtering almost all the ports, not just the Async ports that I am trying to remove.

    Any ideas where I'm going wrong?

    Thanks.

    Comment

    Working...