add a nagios group to inventory

add shutup-nagios and ok-nagios scripts to do those things quickly
This commit is contained in:
Seth Vidal 2013-03-02 06:56:31 +00:00
parent 2d7cf3de84
commit 8ee0668851
3 changed files with 12 additions and 0 deletions

View File

@ -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

4
scripts/ok-nagios Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
ansible nagios -m nagios -a "action=unsilence_nagios"

4
scripts/shutup-nagios Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
ansible nagios -m nagios -a "action=silence_nagios"