Skip to content

Commit d602cc7

Browse files
Lucie DubrunfautLucie Dubrunfaut
authored andcommitted
Fixed hardware verbose output
1 parent 137e43e commit d602cc7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hardware/server/lenovo/xcc/snmp/mode/components/cpu.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sub check {
3636
$self->{components}->{cpu}->{total}++;
3737

3838
$self->{output}->output_add(long_msg => sprintf("'%s' status is %s [instance: %s].",
39-
$result->{cpuStatus}, $result->{cpuString}, $instance));
39+
$result->{cpuString}, $result->{cpuStatus}, $instance));
4040

4141
my $exit = $self->get_severity(label => 'default', section => 'default', value => $result->{cpuStatus});
4242
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {

src/hardware/server/lenovo/xcc/snmp/mode/components/health.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sub check {
5555
$self->{components}->{health}->{total}++;
5656

5757
$self->{output}->output_add(long_msg => sprintf("health '%s' status is %s [instance: %s].",
58-
$result->{healthStatus}, $result->{healthString}, $instance));
58+
$result->{healthString}, $result->{healthStatus}, $instance));
5959

6060
my $exit = $self->get_severity(label => 'default', section => 'default', value => $result->{healthStatus});
6161
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {

src/hardware/server/lenovo/xcc/snmp/mode/components/memory.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sub check {
3636
$self->{components}->{memory}->{total}++;
3737

3838
$self->{output}->output_add(long_msg => sprintf("'%s' status is %s [instance: %s].",
39-
$result->{memoryStatus}, $result->{memoryString}, $instance));
39+
$result->{memoryString}, $result->{memoryStatus}, $instance));
4040

4141
my $exit = $self->get_severity(label => 'default', section => 'default', value => $result->{memoryStatus});
4242
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {

0 commit comments

Comments
 (0)