ajout du downtime

This commit is contained in:
Adrien Bourmault 2022-02-14 19:43:05 +01:00
parent 6ecee71b4c
commit 1c1f94efd7
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 4 additions and 2 deletions

View File

@ -189,13 +189,15 @@ class DataStore:
log.info("Sending to %s: %s" % (destmuc, message)) log.info("Sending to %s: %s" % (destmuc, message))
self.linkedBot.push(destmuc, cur.maintainer+", "+message) self.linkedBot.push(destmuc, cur.maintainer+", "+message)
elif "DOWNTIMEEND" in type and not cur.downtime: elif "DOWNTIMEEND" in type and cur.downtime:
cur.downtime = True cur.downtime = True
message = "début de downtime sur" \ message = "fin de downtime sur" \
" sur %s (%s)" % (host, text) " sur %s (%s)" % (host, text)
# send notification # send notification
log.info("Sending to %s: %s" % (destmuc, message)) log.info("Sending to %s: %s" % (destmuc, message))
self.linkedBot.push(destmuc, cur.maintainer+", "+message) self.linkedBot.push(destmuc, cur.maintainer+", "+message)
else:
pass
# General problem # General problem
elif not service and problemCount == 0: elif not service and problemCount == 0: