Problem with SNMP and MIBs

Posted by jap1968 on Ask Ubuntu See other posts from Ask Ubuntu or by jap1968
Published on 2012-09-25T10:47:48Z Indexed on 2012/09/26 3:49 UTC
Read the original article Hit count: 483

Filed under:
|

I am installing Zabbix to monitor via snmp some devices from a machine running Ubuntu 12.04 server.

There is a problem with MIB definitions, since snmp commands do no properly translate some of the MIBs. I have already installed the "snmp-mibs-downloader" package, so the files containing the MIB descriptions are properly installed.

The MIB are only translated to obtain the numeric key (the MIB files are accessible to the snmp commands), but the results returned by the snmpget command do not properly translate the key. The zabbix templates that I am using do expect the key translated (SNMPv2-MIB::sysUpTime.0) , so, the current results are not recognised and these are ignored.

Test case:

$ snmptranslate -On SNMPv2-MIB::sysUpTime.0
.1.3.6.1.2.1.1.3.0

$ snmpget -v 2c -c public 192.168.1.1 1.3.6.1.2.1.1.3.0
iso.3.6.1.2.1.1.3.0 = Timeticks: (2911822510) 337 days, 0:23:45.10

On another machine (running a very old Red Hat based distribution), the snmp commands perform both, the directe and reverse traslation, as expected:

# snmptranslate -On SNMPv2-MIB::sysUpTime.0
.1.3.6.1.2.1.1.3.0

# snmpget -v 2c -c public 192.168.1.1 1.3.6.1.2.1.1.3.0
SNMPv2-MIB::sysUpTime.0 = Timeticks: (2911819485) 337 days, 0:23:14.85

What is the problem on my Ubuntu box? Is there something I am missing?

© Ask Ubuntu or respective owner

Related posts about snmp

Related posts about mib