Ad Widget

Collapse

Filter on interface SNMP discovery rule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SupportGuy
    Member
    • Mar 2012
    • 30

    #1

    Filter on interface SNMP discovery rule

    Hello,

    Sorry if this point has already been answered, up to now I've not found the response to my question.

    I have to monitor the network trafic of a particular interface for an existing park of servers. Each server has dozen of interfaces.

    The interface I want to monitor is not the same on whole servers. the only common point is the naming rule.

    I would like to know if it is possible to make filtering on the SNMP value in he discovery rule to retrieve only the item of a particular interface at the discovery rule level better thant in the item prototype level with something like, for the SNMP OID :
    IF-MIB::ifAlias["MyIfAlias"]
  • SupportGuy
    Member
    • Mar 2012
    • 30

    #2
    Sorry for eventual disturbance, I've finally found the solution.

    Using the "Filter" fields of the discovery rule, "Macro" and "Regexp".

    In Macro I use {#SNMPVALUE} and in regexp, for example to only take in account interfaces which name is "MyInterfaceName", the string hereafter:
    [^- .]MyInterfaceName$

    Comment

    • harmonica
      Senior Member
      • Jan 2009
      • 251

      #3
      Hello,

      In my case i do not want to collect information for "Virtual-Access<ID>" interfaces on several routers we have. Whats the right regular expression to exclude this interfaces?



      Thanks

      Comment

      • harmonica
        Senior Member
        • Jan 2009
        • 251

        #4
        Hello,

        Anyone can give a tip with this issue?

        Regards

        Comment

        • harmonica
          Senior Member
          • Jan 2009
          • 251

          #5
          Hello,

          The solution is simple. I use expression ^Virtual to exclude Virtual-Access interfaces.

          Regards

          Comment

          • troffasky
            Senior Member
            • Jul 2008
            • 567

            #6
            ...which would then match *any* interface beginning with "Virtual".

            To match Virtual-Access0 - Virtual-Access9:

            Code:
            ^Virtual-Access\d{1}$
            To match Virtual-Access0 - Virtual-Access99:

            Code:
            ^Virtual-Access\d{1,2}$
            etc
            Last edited by troffasky; 12-11-2015, 00:45.

            Comment

            Working...