ajout du downtime
This commit is contained in:
parent
6ecee71b4c
commit
1c1f94efd7
6
data.py
6
data.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue