diff --git a/src/hardware/server/lenovo/xcc/snmp/mode/components/cpu.pm b/src/hardware/server/lenovo/xcc/snmp/mode/components/cpu.pm index 7a664fdfb..d70a3ee06 100644 --- a/src/hardware/server/lenovo/xcc/snmp/mode/components/cpu.pm +++ b/src/hardware/server/lenovo/xcc/snmp/mode/components/cpu.pm @@ -36,7 +36,7 @@ sub check { $self->{components}->{cpu}->{total}++; $self->{output}->output_add(long_msg => sprintf("'%s' status is %s [instance: %s].", - $result->{cpuStatus}, $result->{cpuString}, $instance)); + $result->{cpuString}, $result->{cpuStatus}, $instance)); my $exit = $self->get_severity(label => 'default', section => 'default', value => $result->{cpuStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { diff --git a/src/hardware/server/lenovo/xcc/snmp/mode/components/health.pm b/src/hardware/server/lenovo/xcc/snmp/mode/components/health.pm index fbac7b25e..1d3529335 100644 --- a/src/hardware/server/lenovo/xcc/snmp/mode/components/health.pm +++ b/src/hardware/server/lenovo/xcc/snmp/mode/components/health.pm @@ -55,7 +55,7 @@ sub check { $self->{components}->{health}->{total}++; $self->{output}->output_add(long_msg => sprintf("health '%s' status is %s [instance: %s].", - $result->{healthStatus}, $result->{healthString}, $instance)); + $result->{healthString}, $result->{healthStatus}, $instance)); my $exit = $self->get_severity(label => 'default', section => 'default', value => $result->{healthStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { diff --git a/src/hardware/server/lenovo/xcc/snmp/mode/components/memory.pm b/src/hardware/server/lenovo/xcc/snmp/mode/components/memory.pm index b5bdadec4..e524c6cb9 100644 --- a/src/hardware/server/lenovo/xcc/snmp/mode/components/memory.pm +++ b/src/hardware/server/lenovo/xcc/snmp/mode/components/memory.pm @@ -36,7 +36,7 @@ sub check { $self->{components}->{memory}->{total}++; $self->{output}->output_add(long_msg => sprintf("'%s' status is %s [instance: %s].", - $result->{memoryStatus}, $result->{memoryString}, $instance)); + $result->{memoryString}, $result->{memoryStatus}, $instance)); my $exit = $self->get_severity(label => 'default', section => 'default', value => $result->{memoryStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {