Fix up nagios check for mysqlmariadb database dump ages.
This commit is contained in:
parent
c517c48a21
commit
6309062daa
2 changed files with 12 additions and 0 deletions
|
@ -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 }}
|
||||||
|
|
1
roles/nagios_client/templates/check_mysql.cfg.j2
Normal file
1
roles/nagios_client/templates/check_mysql.cfg.j2
Normal file
|
@ -0,0 +1 @@
|
||||||
|
command[check_mysql_backup]={{ libdir }}/nagios/plugins/check_file_age -w 86400 -c 129600 -f /backups/fpo-mediawiki*.xz
|
Loading…
Add table
Add a link
Reference in a new issue