From 6ecee71b4c4b8c53de7652e0dce97835a2c5faab Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 14 Feb 2022 19:40:23 +0100 Subject: [PATCH] ajout du downtime --- data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.py b/data.py index 9120dea..593b08b 100644 --- a/data.py +++ b/data.py @@ -135,7 +135,7 @@ class DataStore: problemCount += cur.counts[cstatus] # If this notification is a problem - if not "OK" in status: + if not "OK" in status and not "UP" in status: # Unknown state if "UNKNOWN" in cur.type and problemCount == 0: message = "état inconnu sur (%s)" % (host, text)