How do I convert an SNMPget output statment to values I can


#1

I have an sdnm,pget statement that retrieves the CPU Load. I want to mi0nitor one item in this out stream to to tell me I/O Wait on the CPU.

Here is the output of the snmpget statment

sphinx:/usr/local/nagios/libexec# snmpwalk -v 2c -c public 172.xx.xx.xx .1.3.6.1.4.1.2021.11
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0 kB
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0 kB
UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 1 blocks/s
UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 2 blocks/s
UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 2 interrupts/s
UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 3 switches/s
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 98
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 5505009
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 3492532
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 1137926009
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 484856
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 3456124
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 0
UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 2633467202
UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 622245976
UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 1874468570
UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 3808904861
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 36408
UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 31
UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 93

The line UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 3456124 is what I want, but I don’t understand this format. What the hell is Counter32 data, and how do I interpret that number? Any help is phenomenally appreciated.

Joe