From 3a3f4895a26ea29d6497f91a50629b6f10b28d5c 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 --- centreon-plugins/src/check_centreon_snmp_cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/src/check_centreon_snmp_cpu b/centreon-plugins/src/check_centreon_snmp_cpu index 8c68ccebb..da38199dc 100644 --- a/centreon-plugins/src/check_centreon_snmp_cpu +++ b/centreon-plugins/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]."%";