Enable nagios checks for ticketkey, and stop emailing puiterwijk
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
8248eabd70
commit
3fc57e699b
3 changed files with 11 additions and 1 deletions
|
@ -4,4 +4,4 @@ source /root/sshagent >>/dev/null
|
||||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
export HOME=/root/
|
export HOME=/root/
|
||||||
#export ANSIBLE_SSH_PIPELINING=False
|
#export ANSIBLE_SSH_PIPELINING=False
|
||||||
/usr/bin/ansible-playbook /srv/web/infra/ansible/playbooks/update_ticketkey.yml | mailx -s "TickeyKey rollover" puiterwijk@fedoraproject.org
|
/usr/bin/ansible-playbook /srv/web/infra/ansible/playbooks/update_ticketkey.yml >/dev/null 2>&1
|
||||||
|
|
1
roles/nagios_client/templates/check_proxies.cfg.j2
Normal file
1
roles/nagios_client/templates/check_proxies.cfg.j2
Normal file
|
@ -0,0 +1 @@
|
||||||
|
command[check_ticketkey_age]={{ libdir }}/nagios/plugins/check_file_age -w 3600 -c 7200 -f /etc/httpd/ticketkey_{{env}}.tkey
|
|
@ -16,6 +16,15 @@ define service {
|
||||||
notification_interval 130
|
notification_interval 130
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define service {
|
||||||
|
hostgroup_name proxies
|
||||||
|
service_description Check TicketKey age
|
||||||
|
check_command check_by_nrpe!check_ticketkey_age
|
||||||
|
use defaulttemplate
|
||||||
|
check_interval 120
|
||||||
|
notification_interval 130
|
||||||
|
}
|
||||||
|
|
||||||
define service {
|
define service {
|
||||||
host_name log01.phx2.fedoraproject.org
|
host_name log01.phx2.fedoraproject.org
|
||||||
service_description Check Merged Log
|
service_description Check Merged Log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue