From 8ee066885155588fd61489eb16ad60a4a31f2990 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Sat, 2 Mar 2013 06:56:31 +0000 Subject: [PATCH] add a nagios group to inventory add shutup-nagios and ok-nagios scripts to do those things quickly --- inventory/inventory | 4 ++++ scripts/ok-nagios | 4 ++++ scripts/shutup-nagios | 4 ++++ 3 files changed, 12 insertions(+) create mode 100755 scripts/ok-nagios create mode 100755 scripts/shutup-nagios diff --git a/inventory/inventory b/inventory/inventory index 8671d7c9ad..9e21b86818 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -198,6 +198,10 @@ dhcp01.phx2.fedoraproject.org noc01.phx2.fedoraproject.org noc02.fedoraproject.org +[nagios] +noc01.phx2.fedoraproject.org +noc02.fedoraproject.org + [memcached] memcached03.phx2.fedoraproject.org memcached04.phx2.fedoraproject.org diff --git a/scripts/ok-nagios b/scripts/ok-nagios new file mode 100755 index 0000000000..25aae3df35 --- /dev/null +++ b/scripts/ok-nagios @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible nagios -m nagios -a "action=unsilence_nagios" + diff --git a/scripts/shutup-nagios b/scripts/shutup-nagios new file mode 100755 index 0000000000..086ad8c053 --- /dev/null +++ b/scripts/shutup-nagios @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible nagios -m nagios -a "action=silence_nagios" +