fix(hp/p2000): health mode - sensor threshold (#3132)

This commit is contained in:
qgarnier 2021-09-23 09:37:02 +02:00 committed by GitHub
parent 699a057951
commit 6f77427bd2
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ sub check {
my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'sensor', instance => $type . '.' . $sensor_id, value => $value);
if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) {
$self->{output}->output_add(
severity => $exit,
severity => $exit2,
short_msg => sprintf("Sensor '%s' is %s %s", $sensor_id, $value, defined($unit) ? $unit : '-')
);
}
@ -116,7 +116,7 @@ sub check {
instances => $sensor_id,
value => $value,
warning => $warn,
critical => $crit,
critical => $crit
);
}
}