From 0024aafa116df91e5465bd8eca8b159ec6e1dad8 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Thu, 17 Jan 2013 10:32:02 +0100 Subject: [PATCH] Add threshold in perfdata --- src/check_centreon_snmp_cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_centreon_snmp_cpu b/src/check_centreon_snmp_cpu index 8c68ccebb..da38199dc 100644 --- a/src/check_centreon_snmp_cpu +++ b/src/check_centreon_snmp_cpu @@ -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]."%";