Merge pull request #15 from kissthomas/master

Added warning ang critical threshold output to "CPULOAD" perfdata...
This commit is contained in:
Ran Leibman 2015-08-26 11:27:29 +03:00
commit e6c52c4beb
1 changed files with 1 additions and 1 deletions

View File

@ -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 );