fix(server-lenovo-xcc-snmp): fixed hardware verbose output (#5386)
This commit is contained in:
parent
137e43eacd
commit
7149c95144
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue