Fix up nagios check for mysqlmariadb database dump ages.

This commit is contained in:
Kevin Fenzi 2015-06-04 20:43:30 +00:00
parent c517c48a21
commit 6309062daa
2 changed files with 12 additions and 0 deletions

View file

@ -137,6 +137,17 @@
- restart nrpe - restart nrpe
tags: tags:
- nagios_client - nagios_client
#
# The actual items files here end in .j2 (they are templates)
# So when adding or modifying them change the .j2 version in git.
#
- name: install nrpe check_mysql config for mariadb servers
template: src=check_mysql.cfg.j2 dest=/etc/nrpe.d/check_mysql.cfg
when: inventory_hostname.startswith('db03')
notify:
- restart nrpe
tags:
- nagios_client
- name: install nrpe checks for proxies - name: install nrpe checks for proxies
template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }} template: src={{ item }}.j2 dest=/etc/nrpe.d/{{ item }}

View file

@ -0,0 +1 @@
command[check_mysql_backup]={{ libdir }}/nagios/plugins/check_file_age -w 86400 -c 129600 -f /backups/fpo-mediawiki*.xz