Getting processor load?

Stefan Günther <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization http://freemail.web.de/
Message-ID <[email protected]>
Hi,

I'm running net-snmp version 5.3 and my intention is to use the output of the snmp daemon for NAGIOS.
Right now I'm monitoring a number of linux and windows boxes via snmp but there is one detail for which I haven't found a solution, yet.

I have checked the MIB files for a way to get information about the processor load and found the ssCpu objects.
According to UCD-SNMP-MIB.txt ssCpuUser, ssCpuSystem and ssCpuIdle are deprecated. 
These three object return differents values on every PC, but these values never change.

UCD-SNMP-MIB.txt recommends to use the ssCpuRaw object, but these are Counter32 values, and I expect to get a percentage. Am I on the wrong track and these are the wrong objects for my purpose or can anyone show me an easy way to just get the processor load (percentage)?

Thanks for any help,

Stefan

Here is the current output of one of the PCs

snmpwalk -c public -v 2c 127.0.0.1 ucd | grep -i cpu
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 99
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 48421
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 17647
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 7590
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 889352
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 4454
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 7370
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 77
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 143

______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.