Getting processor load?

This is a discussion on Getting processor load? within the SNMP Users forums, part of the Networking and Network Related category; Hi, I'm running net-snmp version 5.3 and my intention is to use the output of the snmp ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-02-2006
Stefan Günther
 
Posts: n/a
Default Getting processor load?

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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:00 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0