From 931101ce3900a97fc2b366111ac74ee2435b30ec Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 19 Jun 2017 11:46:35 +0200 Subject: [PATCH] Fix #689 --- network/checkpoint/snmp/mode/cpu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/checkpoint/snmp/mode/cpu.pm b/network/checkpoint/snmp/mode/cpu.pm index 220e14fce..0232be381 100644 --- a/network/checkpoint/snmp/mode/cpu.pm +++ b/network/checkpoint/snmp/mode/cpu.pm @@ -69,7 +69,7 @@ sub run { my $exit = $self->{perfdata}->threshold_check(value => $totalCpuUsed, threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]); $self->{output}->output_add(severity => $exit, - short_msg => sprintf("CPU Usage: %d (System: %d User: %d Idle: %d)", $totalCpuUsed, $result->{$oid_procUsrTime}, $result->{$oid_procSysTime}, $result->{$oid_procIdleTime} )); + short_msg => sprintf("CPU Usage: %d (System: %d User: %d Idle: %d)", $totalCpuUsed, $result->{$oid_procSysTime}, $result->{$oid_procUsrTime}, $result->{$oid_procIdleTime} )); $self->{output}->perfdata_add(label => "cpu", unit => '%', value => $totalCpuUsed, warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning'),