AW: Calculationg CPU usage using ssCpuRawIdle

This is a discussion on AW: Calculationg CPU usage using ssCpuRawIdle within the SNMP Users forums, part of the Networking and Network Related category; >> -----Urspr=FCngliche Nachricht----- >> Von: frank [mailto:ratty@they.org]=20 < ORIGINAL MESSAGE SNIPPED> >&...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-12-2005
Mohr James
 
Posts: n/a
Default AW: Calculationg CPU usage using ssCpuRawIdle

>> -----Urspr=FCngliche Nachricht-----
>> Von: frank [mailto:ratty@they.org]=20

< ORIGINAL MESSAGE SNIPPED>
>>=20
>> Sure, take a look at http://web.they.org/software/check_local_cpu.pl
>>=20
>> snmpd.conf has:
>> exec .1.3.6.1.4.1.1.1 cpu /path/to/check_local_cpu.pl
>>=20
>> Then I can run:
>> snmpget localhost .1.3.6.1.4.1.1.1.101.1
>>=20
>> And I get back:
>> SNMPv2-SMI::enterprises.1.1.101.1 =3D STRING: "u:2,s:1,i:98"
>>=20
>> which is easy for me to parse and stuff into an RRD or whatever.
>>=20
>>=20
>> hope this helps
>> -frank
>>


Thanks for the script. I learned a little perl with that one, too!=20

What I am interpreting from all of this is that you can basically use =
any OID with the exec statement. Since you are explicitely defining the =
OID with the exec statement, there is no need to do a walk, just read =
the specific OID. Is that right, so far?

Regards,

Jim Mohr


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&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 Search this Thread
Search this Thread:

Advanced Search
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

BB 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 03:37 AM.


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