This commit is contained in:
qgarnier 2017-05-05 17:57:01 +02:00
parent 1b8bc822e2
commit 3c196c90a2
1 changed files with 2 additions and 1 deletions

View File

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