Ad Widget

Collapse

SNMP tables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alj
    Senior Member
    • Aug 2006
    • 188

    #1

    SNMP tables

    How to query elements in snmp table? For example to query interface by name?

    If i use numeric OID it migth change if number of elements in table changes (for example in case of storage somebody adds new volume which is usual thing) or on some devices it changes after reboot (sometimes order of table entries changes).

    I'm now puzzled how to monitor interfaces on network devices and volumes on the storage because those are all done via SNMP tables.
  • sbadger
    Member
    • Dec 2005
    • 81

    #2
    Load the MIB for the device onto your system. Then can query by more of name than just the OID number. Check the following link for an FAQ on SNMP:

    Last edited by sbadger; 13-11-2006, 16:30.

    Comment

    • alj
      Senior Member
      • Aug 2006
      • 188

      #3
      It is all good except that zabbix stripts ."name" part of OID."name".

      I found workardound - i request variable via snmpget OID."name" then get long numeric OID+OID of "name" being translated to numbers. Not very comfortable way of doing so so it would be nice if zabbix would not strip ."name" part of the variable.

      Comment

      • tsp
        Junior Member
        • Dec 2006
        • 1

        #4
        sorry, but I don't really understand your workaround. Could you give me an example how you query an snmp element in a table by name?

        thanks.

        Comment

        • kouf
          Junior Member
          • Feb 2011
          • 1

          #5
          http://www.zabbix.com/documentation/.../advanced_snmp

          For example, to get the ifInOctets value for the GigabitEthernet0/1 interface on a Cisco device, use the following OID:

          ifInOctets["index","ifDescr","GigabitEthernet0/1"]

          Comment

          Working...