fix(server-lenovo-xcc-snmp): fixed hardware verbose output (#5386)

This commit is contained in:
Lucie Dubrunfaut 2025-01-10 15:29:49 +01:00 committed by GitHub
parent 137e43eacd
commit 7149c95144
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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)) {