This commit is contained in:
qgarnier 2017-10-02 15:47:25 +02:00
parent 268cfffa31
commit 276f6e058e
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ sub run {
$self->{output}->output_add(long_msg => sprintf("Phase '%s' on Bank '%s' status is '%s' [instance: %s, value: %s]",
$result->{rPDULoadStatusPhaseNumber}, $result->{rPDULoadStatusBankNumber}, $result->{rPDULoadStatusLoadState},
$instance, $result->{rPDULoadStatusLoad}));
$instance, defined($result->{rPDULoadStatusLoad}) ? $result->{rPDULoadStatusLoad} : '-'));
my $exit = $self->get_severity(section => 'load', instance => $instance, value => $result->{rPDULoadStatusLoadState});
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
$self->{output}->output_add(severity => $exit,
@ -273,4 +273,4 @@ Set critical threshold for temperatures (syntax: type,instance,threshold)
Example: --critical='load,.*,40'
=back
=cut
=cut