Dzahn has submitted this change and it was merged.

Change subject: misc/scripts: remove 'scheduledowntime'
......................................................................


misc/scripts: remove 'scheduledowntime'

modules/icinga/files/icinga-downtime should be used
instead, it does the same thing. Cleaning up misc.

Change-Id: I93780f43da78865f571ae6053a8b2b7e335c4650
---
D files/misc/scripts/scheduledowntime
1 file changed, 0 insertions(+), 17 deletions(-)

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



diff --git a/files/misc/scripts/scheduledowntime 
b/files/misc/scripts/scheduledowntime
deleted file mode 100755
index 0f30c65..0000000
--- a/files/misc/scripts/scheduledowntime
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-# schedule icinga downtime for a new host
-#
-# have this triggered on neon somehow
-# when new hosts are installed and
-# icinga spam should be avoided
-
-icinga_user=$USER
-icinga_fifo=/var/lib/nagios/rw/nagios.cmd
-icinga_host=$1
-
-duration=$(( 2 * 60 * 60)) ; 2 hours
-ts_from=$(date +%s)
-ts_to=$(( ts_from + duration))
-
-printf "[%lu] 
SCHEDULE_HOST_DOWNTIME;${icinga_host};${ts_from};${ts_to};1;0;${duration};${icinga_user};automatic
 downtime for newly installed host\n" $(date +%s) > $icinga_fifo
-

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I93780f43da78865f571ae6053a8b2b7e335c4650
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@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