http://kes777.livejournal.com/ ([identity profile] kes777.livejournal.com) wrote in [personal profile] dadv 2011-12-25 07:21 pm (UTC)

я кактусом вот такое рисую:
http://piccy.info/view3/2404329/dd9f28f8ac74d3d2f698ff14c305fe31/

вот скрипт для снятия:
#!/usr/bin/perl

use warnings;
use strict;

my $host= $ARGV[0];
my $snmpauth= $ARGV[1];

#.1.3.6.1.4.1.2021.11.
my $user= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawUser.0`; chop $user;
my $nice= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawNice.0`; chop $nice;
my $system= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawSystem.0`; chop $system;
my $idle= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawIdle.0`; chop $idle;
my $wait= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawWait.0`; chop $wait;
my $kernel= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawKernel.0`; chop $kernel;
my $interrupt= `/usr/local/bin/snmpget $snmpauth -O qv $host UCD-SNMP-MIB::ssCpuRawInterrupt.0`; chop $interrupt;


print "user:$user nice:$nice system:$system idle:$idle wait:$wait kernel:$kernel interrupt:$interrupt";

мож кто спасибо скажет )

Post a comment in response:

This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org