Fix #650
This commit is contained in:
parent
1b8bc822e2
commit
3c196c90a2
|
@ -164,6 +164,7 @@ sub run {
|
|||
}
|
||||
|
||||
if (defined($result->{rPDUOutletStatusLoad}) && $result->{rPDUOutletStatusLoad} =~ /[0-9]/ && $result->{rPDUOutletStatusLoad} != 0) {
|
||||
$result->{rPDUOutletStatusLoad} /= 10;
|
||||
my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'load', instance => $instance, value => $result->{rPDUOutletStatusLoad});
|
||||
if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) {
|
||||
$self->{output}->output_add(severity => $exit2,
|
||||
|
@ -280,4 +281,4 @@ Set critical threshold for temperatures (syntax: type,instance,threshold)
|
|||
Example: --critical='load,.*,40'
|
||||
=back
|
||||
|
||||
=cut
|
||||
=cut
|
||||
|
|
Loading…
Reference in New Issue