This commit is contained in:
qgarnier 2017-10-04 16:18:19 +02:00
parent 63ddf241e9
commit 9843fc7984
1 changed files with 2 additions and 1 deletions

View File

@ -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,