diff --git a/snmp_standard/mode/cpu.pm b/snmp_standard/mode/cpu.pm index db3b47ab9..99181f6d3 100644 --- a/snmp_standard/mode/cpu.pm +++ b/snmp_standard/mode/cpu.pm @@ -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'),