Merge branch 'master' of https://github.com/centreon/centreon-plugins
This commit is contained in:
commit
8810535505
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue