Enable nagios checks for ticketkey, and stop emailing puiterwijk

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2018-10-20 15:36:00 +02:00
parent 8248eabd70
commit 3fc57e699b
3 changed files with 11 additions and 1 deletions

View file

@ -4,4 +4,4 @@ source /root/sshagent >>/dev/null
export ANSIBLE_HOST_KEY_CHECKING=False
export HOME=/root/
#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

View file

@ -0,0 +1 @@
command[check_ticketkey_age]={{ libdir }}/nagios/plugins/check_file_age -w 3600 -c 7200 -f /etc/httpd/ticketkey_{{env}}.tkey

View file

@ -16,6 +16,15 @@ define service {
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 {
host_name log01.phx2.fedoraproject.org
service_description Check Merged Log