Skip to content

Commit

Permalink
+ Fix #425
Browse files Browse the repository at this point in the history
  • Loading branch information
garnier-quentin committed Jun 27, 2016
1 parent 069d3a1 commit a175250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network/h3c/snmp/mode/components/sensor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ sub check {
short_msg => sprintf("Sensor '%s' status is '%s'", $name, $result->{EntityExtErrorStatus}));
}

next if (defined($result2->{EntityExtTemperature}) && $result2->{EntityExtTemperature} <= 0);

($exit, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'temperature', instance => $instance, value => $result2->{EntityExtTemperature});
if ($checked == 0) {
my $crit_th = '~:' . $result2->{EntityExtTemperatureThreshold};
Expand Down

0 comments on commit a175250

Please sign in to comment.