+ Fix #561
This commit is contained in:
parent
9379dcba8e
commit
d620a5e698
|
@ -80,7 +80,7 @@ sub run {
|
|||
my $exit_code = $self->{perfdata}->threshold_check(value => $avg_cpu,
|
||||
threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
$self->{output}->output_add(severity => $exit_code,
|
||||
short_msg => sprintf("CPU(s) average usage is: %.2f%%", $avg_cpu));
|
||||
short_msg => sprintf("%s CPU(s) average usage is: %.2f%%", $i, $avg_cpu));
|
||||
$self->{output}->perfdata_add(label => 'total_cpu_avg', unit => '%',
|
||||
value => sprintf("%.2f", $avg_cpu),
|
||||
warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),
|
||||
|
|
Loading…
Reference in New Issue