diff --git a/mysql/handlers/main.yml b/mysql/handlers/main.yml index 50755f30..87a7613a 100644 --- a/mysql/handlers/main.yml +++ b/mysql/handlers/main.yml @@ -4,11 +4,6 @@ name: munin-node state: restarted -- name: restart nagios-nrpe-server - service: - name: nagios-nrpe-server - state: restarted - - name: restart mysql service: name: mysql diff --git a/mysql/tasks/replication.yml b/mysql/tasks/replication.yml index 33263815..54f5e3e9 100644 --- a/mysql/tasks/replication.yml +++ b/mysql/tasks/replication.yml @@ -23,12 +23,6 @@ register: create_repl_user when: mysql_repl_password | length > 0 -- name: 'Add Nagios check for replication' - template: - src: 'replication_check.cfg.j2' - dest: '/etc/nagios/nrpe.d/replication.cfg' - notify: 'restart nagios-nrpe-server' - - name: 'Install xinetd' apt: name: 'xinetd' diff --git a/mysql/templates/replication_check.cfg.j2 b/mysql/templates/replication_check.cfg.j2 deleted file mode 100644 index 76135811..00000000 --- a/mysql/templates/replication_check.cfg.j2 +++ /dev/null @@ -1,3 +0,0 @@ -# ansible managed - -command[check_mysql_slave]=/usr/lib/nagios/plugins/check_mysql --check-slave -H localhost -f ~nagios/.my.cnf -w 1800 -c 3600