Dzahn has submitted this change and it was merged.

Change subject: icinga: also schedule host services downtime
......................................................................


icinga: also schedule host services downtime

In addition to host downtime also schedule downtime for service(s) on the host,
in case recovery of services takes longer than the host's.

Change-Id: I29e029932392b08e90527fffc761f72248e4bba2
---
M modules/icinga/files/icinga-downtime
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Dzahn: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/icinga/files/icinga-downtime 
b/modules/icinga/files/icinga-downtime
index 05aab26..f4123a2 100755
--- a/modules/icinga/files/icinga-downtime
+++ b/modules/icinga/files/icinga-downtime
@@ -49,6 +49,7 @@
 end_time=$(( $start_time + $duration ))
 
 printf "[%lu] 
SCHEDULE_HOST_DOWNTIME;${hostname};${start_time};${end_time};1;0;${duration};${user};${reason}\n"
 $(date +%s) > $commandfile
+printf "[%lu] 
SCHEDULE_HOST_SVC_DOWNTIME;${hostname};${start_time};${end_time};1;0;${duration};${user};${reason}\n"
 $(date +%s) > $commandfile
 
 tail -f $logfile | grep -m2 $hostname
 

-- 
To view, visit https://gerrit.wikimedia.org/r/317721
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I29e029932392b08e90527fffc761f72248e4bba2
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to