git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@7677 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2009-02-27 17:16:42 +00:00
parent 5e3ff122f0
commit eaaf238be7

View File

@ -181,10 +181,10 @@ $cpu /= $i;
# Plugin return code
my $status = "OK";
if ($opt_w <= $cpu) {
$status = "WARNING";
} elsif ($opt_c <= $cpu) {
if ($cpu >= $opt_c) {
$status = "CRITICAL";
} elsif ($cpu >= $opt_w) {
$status = "WARNING";
}
my $str = "CPU utilization percentage : ".$cpu."%|avg=".$cpu."%";