mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
Fix #770
This commit is contained in:
parent
a91e976188
commit
48a020d720
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user