Ad Widget

Collapse

Discovery with filter SNMP OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobyboy
    Junior Member
    • Nov 2012
    • 25

    #1

    Discovery with filter SNMP OID

    Hi all,
    I want to create a "SNMP discovery" back to the "ifInOctets" and "ifOutOctets" for only my interfaces with "ifOperStatus = up" OID value.
    Do you have a track to help me.
    Thank you.

    My config :

    I have :
    - Create one template with one discovery

    * Discovery :
    Name : Network interface up
    Type : SNMPv2 agent
    key : snmp.discovery
    SNMP OID : ifOperStatus
    SNMP community : ****
    Filter macro : {#SNMPVALUE} Regxp : ^up$

    - Create item prototypes :
    Name : test
    Type : SNMPv2 agent
    Key : ifInOctets[{#SNMPINDEX}]
    SNMP OID : ifInOctets.{#SNMPINDEX}

    And with this config, all my interface network are discovery.
    Last edited by bobyboy; 20-11-2012, 16:32.
  • pcraponi
    Junior Member
    • Oct 2012
    • 15

    #2
    Hi,
    I need the same thing... If you found the solution, please share here..


    Thanks.


    Best Regards,
    Paulo Raponi

    Comment

    • bobyboy
      Junior Member
      • Nov 2012
      • 25

      #3
      Hi,
      Solution : just change the regxp : "^u|^1"
      Snmp retunr value "up (1)" so i use this 2 filter.

      Comment

      • pcraponi
        Junior Member
        • Oct 2012
        • 15

        #4
        Originally posted by bobyboy
        Hi,
        Solution : just change the regxp : "^u|^1"
        Snmp retunr value "up (1)" so i use this 2 filter.
        Thanks. I did this... Works..

        What you do now to get the network interfaces name? With this item, I can only get the index of the interface, not the name. Can we do a correlation between the name and the index?

        My SNMPWalk returns:

        IF-MIB::ifOperStatus.25 = INTEGER: up(1)
        IF-MIB::ifOperStatus.26 = INTEGER: up(1)
        IF-MIB::ifOperStatus.27 = INTEGER: up(1)
        IF-MIB::ifOperStatus.28 = INTEGER: up(1)
        IF-MIB::ifOperStatus.29 = INTEGER: up(1)
        IF-MIB::ifOperStatus.30 = INTEGER: up(1)

        How I can get the name to put on graphs?

        Regards,
        Paulo Raponi
        Last edited by pcraponi; 22-11-2012, 15:45.

        Comment

        • bobyboy
          Junior Member
          • Nov 2012
          • 25

          #5
          Hi,
          I see we have the same point

          At first I tried to add an item to back ifDescr OID, but impossible to integrate these data in the name of my graphs.
          This highly requested feature will probably be available in the next version, see my last post http://www.zabbix.com/forum/showthread.php?t=37727


          A++

          Comment

          Working...