mirror of
https://github.com/ranl/monitor-utils.git
synced 2024-11-05 07:43:40 +01:00
Merge pull request #15 from kissthomas/master
Added warning ang critical threshold output to "CPULOAD" perfdata...
This commit is contained in:
commit
e6c52c4beb
@ -648,7 +648,7 @@ if("$opt{'check_type'}" eq "TEMP") {
|
||||
} elsif("$opt{'check_type'}" eq "CPULOAD") {
|
||||
my $check = _get_oid_value($snmp_session,$snmpcpuBusyTimePerCent);
|
||||
($msg,$stat) = _clac_err_stat($check,$opt{'check_type'},$opt{'warn'},$opt{'crit'});
|
||||
$perf = "cpuload=$check\%";
|
||||
$perf = "cpuload=$check\%;$opt{'warn'};$opt{'crit'};;";
|
||||
### NFSOPS ###
|
||||
} elsif("$opt{'check_type'}" eq "NFSOPS") {
|
||||
my $nfsops_per_seconds=floor ( ($total_nfs_ops-$fileNfsOps)/$elapsedtime );
|
||||
|
Loading…
Reference in New Issue
Block a user