(plugin) network::fortinet::fortigate::snmp - mode hardware better message (#4018)

This commit is contained in:
qgarnier 2022-10-25 14:49:57 +02:00 committed by GitHub
parent 86a09c52e2
commit 0e96acecfa
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ sub check {
$self->{output}->output_add(
long_msg => sprintf(
"sensor '%s' status is '%s' [instance = %s] [value = %s]",
"sensor '%s' alarm status is '%s' [instance = %s] [value = %s]",
$name, $result->{fgHwSensorEntAlarmStatus}, $instance,
defined($result->{fgHwSensorEntValue}) ? $result->{fgHwSensorEntValue} : '-'
)
@ -178,7 +178,7 @@ sub check {
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
$self->{output}->output_add(
severity => $exit,
short_msg => sprintf("Sensor '%s' status is '%s'", $name, $result->{fgHwSensorEntAlarmStatus})
short_msg => sprintf("Sensor '%s' alarm status is '%s'", $name, $result->{fgHwSensorEntAlarmStatus})
);
}