Add threshold in perfdata

This commit is contained in:
Quentin Garnier 2013-01-17 10:32:02 +01:00
parent ad5b0988f1
commit 3a3f4895a2
1 changed files with 1 additions and 1 deletions

View File

@ -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]."%";