Ad Widget

Collapse

Get All Values for an OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Glazzanz
    Junior Member
    • Jan 2011
    • 4

    #1

    Get All Values for an OID

    Hi All

    I wondering if zabbix is able to query all values within an OID Table. What I would like to do is check all the values within a table, and return the number of values that do not equal 2.

    So the case at hand, the OID is 1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0. This contains:

    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.1: 2
    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.3: 2
    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.4: 2
    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.5: 2

    So in this case I would like 0 to be returned. However if say the data returned from SNMP was:

    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.1: 3
    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.3: 2
    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.4: 1
    1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.5: 2

    I would like 2 to be returned.

    Any ideas how I can do such?

    Thanks
    David
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    Not possible, to my knowledge. You would have to make a script that did an snmpwalk and parsed the output, then use zabbix_sender to return the result. We do that for some snmpwalk data in our setup.

    Comment

    Working...