mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
Add threshold in perfdata
This commit is contained in:
parent
ad5b0988f1
commit
3a3f4895a2
@ -139,7 +139,7 @@ if ($cpu >= $opt_c) {
|
|||||||
$status = "WARNING";
|
$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) {
|
if ($opt_l == 0) {
|
||||||
for ($i = 0; defined($cpulist[$i]); $i++){
|
for ($i = 0; defined($cpulist[$i]); $i++){
|
||||||
$str .= " cpu$i=".$cpulist[$i]."%";
|
$str .= " cpu$i=".$cpulist[$i]."%";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user