Fix #770
This commit is contained in:
parent
63ddf241e9
commit
9843fc7984
|
@ -154,7 +154,8 @@ sub run {
|
|||
|
||||
$self->{output}->output_add(long_msg => sprintf("Outlet '%s' state is '%s' [instance: %s, bank : %s, phase : %s, load: %s]",
|
||||
$result->{rPDUOutletStatusOutletName}, $result->{rPDUOutletStatusOutletState},
|
||||
$instance, $result->{rPDUOutletStatusOutletBank}, $result->{rPDUOutletStatusOutletPhase}, $result->{rPDUOutletStatusLoad}));
|
||||
$instance, $result->{rPDUOutletStatusOutletBank}, $result->{rPDUOutletStatusOutletPhase},
|
||||
defined($result->{rPDUOutletStatusLoad}) ? $result->{rPDUOutletStatusLoad} : '-'));
|
||||
my $exit = $self->get_severity(section => 'outlet', instance => $instance, value => $result->{rPDUOutletStatusOutletState});
|
||||
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
||||
$self->{output}->output_add(severity => $exit,
|
||||
|
|
Loading…
Reference in New Issue