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> >&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
>> -----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 |