瀏覽代碼

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

master
Dirk Alders 1 年之前
父節點
當前提交
349ee94924
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      z_server/devices/__init__.py

+ 1
- 1
z_server/devices/__init__.py 查看文件

@@ -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()

Loading…
取消
儲存