Linux iTOps Tube

Wednesday, 23 November 2011

Monitoring Non Linux MIB Values

Monitoring Non Linux MIB Values

All the MIBs mentioned so far are for Linux systems; other types of systems will need additional MIBs whose correct installation may be unclear in user guides or just not available. In such cases, you'll need to know the exact value of the OID.


Imagine that your small company has purchased a second-hand Cisco switch to connect its Web site servers to the Internet. The basic MRTG configuration shown in Chapter 22, " Monitoring Server Performance", provides the data bandwidth statistics, but you want to measure the CPU load the traffic is having on the device, as well. Downloading MIBs from Cisco and using them with the snmpget command was not a success. You do not know what to do next. Find The OIDs

When MIB values fail, it is best to try to find the exact OID value. Like most network equipment manufacturers, Cisco has an FTP site from which you can download both MIBs and OIDs. The SNMP files for Cisco's devices can be found at in the /pub/mibs directory; OIDs are in the oid directory beneath that.

After looking at all the OID files, you decide that the file CISCO-PROCESS-MIB.oid will contain the necessary values and find these entries inside it.

"cpmCPUTotalPhysicalIndex"  ""
"cpmCPUTotal5sec"           ""
"cpmCPUTotal1min"           ""
"cpmCPUTotal5min"           ""
"cpmCPUTotal5secRev"        ""
"cpmCPUTotal1minRev"        ""
"cpmCPUTotal5minRev"        ""

Testing The OIDs

As you can see, all the OIDs are a part of the same tree starting with The OIDs provided may be incomplete, so it is best to use the snmpwalk command to try to get all the values below this root first.

[root@bigboy tmp]# snmpwalk -v1 -c craz33guy cisco-switch
SNMPv2-SMI::enterprises. = INTEGER: 0
SNMPv2-SMI::enterprises. = Gauge32: 32
SNMPv2-SMI::enterprises. = Gauge32: 32
SNMPv2-SMI::enterprises. = Gauge32: 32
[root@bigboy tmp]#

Although listed in the OID file,,, and are not supported. Notice also how SNMP has determined that the first part of the OID value ( in the original OID file maps to the word "enterprise".

Next, you can use one the snmpget command to set only one of the OID values returned by snmpwalk.

[root@bigboy tmp]# snmpget -v1 -c craz33guy cisco-switch \
SNMPv2-SMI::enterprises. = Gauge32: 33
[root@bigboy tmp]#

Success! Now you can use this OID value, enterprises., for your MRTG queries.

No comments:

Post a Comment