Add threshold in perfdata
This commit is contained in:
parent
ad5b0988f1
commit
3a3f4895a2
|
@ -139,7 +139,7 @@ if ($cpu >= $opt_c) {
|
|||
$status = "WARNING";
|
||||
}
|
||||
|
||||
my $str = "CPU utilization percentage : ".$cpu."%|avg=".$cpu."%";
|
||||
my $str = "CPU utilization percentage : ".$cpu."%|avg=".$cpu."%;$opt_w;$opt_c;0;100";
|
||||
if ($opt_l == 0) {
|
||||
for ($i = 0; defined($cpulist[$i]); $i++){
|
||||
$str .= " cpu$i=".$cpulist[$i]."%";
|
||||
|
|
Loading…
Reference in New Issue