Ad Widget

Collapse

zabbix items and corresponding OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shadock
    Junior Member
    • Oct 2013
    • 1

    #1

    zabbix items and corresponding OID

    Hello
    I'm inexperienced user of Zabbix so i'm sorry if my question is trivial for most of you.
    I have to check strange values of some items collected in zabbix. Values are taken from SNMP and it is somehow configured. I need to check which OID is responsible for specific item.

    Where can I find this?

    Kind regards
  • pxsh
    Junior Member
    • Oct 2013
    • 14

    #2
    Hi Shadock,

    I´m a beginner in SNMP/Zabbix but I think I can help you a little bit on your way to enlightenment in this question. This post assumes that you use linux system and have SSH access.

    You can get the OID of an named/alphanumerical Key (example: IF-MIB::ifInErrors, in Cisco interface template) by using snmptranslate:

    snmptranslate -m +<MIB_NAME> -IR -On <OBJECT>

    MIB name is the name of the MIB file you´re "using" without file extention (.txt), i.e. the one that is located in /usr/share/snmp/mibs/ if you´re using CentOS 6 like me.

    OBJECT is the name of the object, ifInErrors in my example above.
    MIB file in sample is /usr/share/snmp/mibs/IF-MIB.txt

    So the cmd to use for getting numerical OID is:
    snmptranslate -m +IF-MIB -IR -On ifInErrors

    command and result on my server:
    $ snmptranslate -m +IF-MIB -IR -On ifInErrors
    .1.3.6.1.2.1.2.2.1.14

    Hope this is of help.

    Comment

    Working...