2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: Install the plugin dependencies
|
2018-08-09 18:52:55 +02:00
|
|
|
apt: pkg={{ item }} state=present
|
2015-05-28 11:32:57 +02:00
|
|
|
with_items: check_tomcat_deps
|
|
|
|
tags:
|
|
|
|
- nagios
|
|
|
|
- nrpe
|
|
|
|
- check_tomcat
|
|
|
|
|
|
|
|
- name: Install the check_tomcat plugin
|
|
|
|
copy: src=check_tomcat dest={{ nagios_isti_plugdir }}/check_tomcat owner=root group=root mode=0755
|
|
|
|
tags:
|
|
|
|
- nagios
|
|
|
|
- nrpe
|
|
|
|
- check_tomcat
|
|
|
|
|
|
|
|
- name: Install the check_tomcat nrpe commands file
|
|
|
|
template: src=check_tomcat-nrpe.cfg.j2 dest=/etc/nagios/nrpe.d/check_tomcat.cfg owner=root group=root mode=444
|
|
|
|
notify:
|
|
|
|
- Reload NRPE server
|
|
|
|
tags:
|
|
|
|
- nrpe
|
|
|
|
- nagios
|
|
|
|
- check_tomcat
|
|
|
|
|
|
|
|
- name: nagios needs root to execute some commands. We do it via sudo
|
|
|
|
template: src=nagios.sudoers.j2 dest=/etc/sudoers.d/nagios owner=root group=root mode=0440
|
|
|
|
tags:
|
|
|
|
- nagios
|
|
|
|
- nrpe
|
|
|
|
|