This commit is contained in:
garnier-quentin 2017-01-09 16:50:25 +01:00
commit 8810535505
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ sub check {
}
if (defined($result->{rPDU2SensorTempHumidityStatusRelativeHumidity}) && $result->{rPDU2SensorTempHumidityStatusRelativeHumidity} =~ /[0-9]/) {
my $value = $result->{rPDU2SensorTempHumidityStatusRelativeHumidity} / 10;
my $value = $result->{rPDU2SensorTempHumidityStatusRelativeHumidity};
my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'humidity', instance => $result->{rPDU2SensorTempHumidityStatusNumber}, value => $value);
if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) {
$self->{output}->output_add(severity => $exit2,

View File

@ -83,7 +83,7 @@ sub set_system {
'slot', 'fru', 'storagectrl', 'storagebattery', 'pdisk', 'vdisk'];
$self->{regexp_threshold_overload_check_section_option} =
'^(' . join('|', @{$self->{components_module}}). ')$';
'^(?:' . join('|', @{$self->{components_module}}). ')\.(?:status|state)$';
}
sub snmp_execute {