summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2016-05-27 21:41:44 +0000
committerKevin Fenzi <kevin@scrye.com>2016-05-27 21:41:44 +0000
commit8bd2fc224f0cc335b6e7383ed81016d65462d49d (patch)
treeb22ffbeda9cae15ff4b6f265f48789f1d190884e
parent34d47f27e4451e721d6fec58b47046c8f90d573e (diff)
downloadansible-8bd2fc224f0cc335b6e7383ed81016d65462d49d.tar.gz
ansible-8bd2fc224f0cc335b6e7383ed81016d65462d49d.tar.xz
ansible-8bd2fc224f0cc335b6e7383ed81016d65462d49d.zip
When shutting up nagios also disable handlers and re-enable then when ok
-rwxr-xr-xscripts/ok-nagios2
-rwxr-xr-xscripts/shutup-nagios2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ok-nagios b/scripts/ok-nagios
index 25aae3df3..ed744930c 100755
--- a/scripts/ok-nagios
+++ b/scripts/ok-nagios
@@ -1,4 +1,4 @@
#!/bin/bash
ansible nagios -m nagios -a "action=unsilence_nagios"
-
+ansible nagios -m nagios -a "action=command command='ENABLE_EVENT_HANDLERS'"
diff --git a/scripts/shutup-nagios b/scripts/shutup-nagios
index 086ad8c05..02aa04ce5 100755
--- a/scripts/shutup-nagios
+++ b/scripts/shutup-nagios
@@ -1,4 +1,4 @@
#!/bin/bash
ansible nagios -m nagios -a "action=silence_nagios"
-
+ansible nagios -m nagios -a "action=command command='DISABLE_EVENT_HANDLERS'"