This commit is contained in:
garnier-quentin 2017-03-21 15:07:20 +01:00
parent 9379dcba8e
commit d620a5e698
1 changed files with 1 additions and 1 deletions

View File

@ -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'),