follow setpoint: state to OK for received device setpoit but no target value

This commit is contained in:
Dirk Alders 2023-12-22 06:59:13 +01:00
parent 89e50fc31d
commit 349ee94924

View File

@ -104,7 +104,7 @@ class base(object):
tm_t, value_t = self.__target_storage__[self.FOLLOW_KEY]
except KeyError:
if value_s is not None:
return self.__nagios_return__(self.MONITORING_FOLLOW_SETPOINT, nagios.Nagios.WARNING, "Current temperature setpoint %.1f°C (age=%.1fmin), but never received a setpoint" % (value_s, (time.time()-tm_s)/60))
return self.__nagios_return__(self.MONITORING_FOLLOW_SETPOINT, nagios.Nagios.OK, "Current temperature setpoint %.1f°C (age=%.1fmin), but never received a setpoint. That might be okay." % (value_s, (time.time()-tm_s)/60))
return self.__nagios_return__(self.MONITORING_FOLLOW_SETPOINT, nagios.Nagios.UNKNOWN, "Device exists, but no data received")
else:
tm = time.time()