Procházet zdrojové kódy

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

master
Dirk Alders před 1 rokem
rodič
revize
349ee94924
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      z_server/devices/__init__.py

+ 1
- 1
z_server/devices/__init__.py Zobrazit soubor

@@ -104,7 +104,7 @@ class base(object):
104 104
                 tm_t, value_t = self.__target_storage__[self.FOLLOW_KEY]
105 105
             except KeyError:
106 106
                 if value_s is not None:
107
-                    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))
107
+                    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))
108 108
                 return self.__nagios_return__(self.MONITORING_FOLLOW_SETPOINT, nagios.Nagios.UNKNOWN, "Device exists, but no data received")
109 109
             else:
110 110
                 tm = time.time()

Načítá se…
Zrušit
Uložit