소스 검색

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…
취소
저장