From 349ee9492438b4b5c75c6da649c7af5957e91a52 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Fri, 22 Dec 2023 06:59:13 +0100 Subject: [PATCH] follow setpoint: state to OK for received device setpoit but no target value --- z_server/devices/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z_server/devices/__init__.py b/z_server/devices/__init__.py index 8355af6..478eb77 100644 --- a/z_server/devices/__init__.py +++ b/z_server/devices/__init__.py @@ -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()