Commit 20b266bf authored by Paschalis Korosoglou's avatar Paschalis Korosoglou
Browse files

ARGO-356 Make nrpe configuration more easily adaptable to distinct host roles

parent 684e8475
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 10% -c 5%
\ No newline at end of file
......@@ -9,14 +9,18 @@
- nagios-plugins-disk
- name: Copy nrpe configuration file on host
tags: monitoring
copy: src=ar-dev-api.cfg
dest={{ nrpe_conf_path }}/ar-dev-api.cfg backup=yes
owner=root group=root mode=0644
tags:
- monitoring
- nrpe_checks
template: src=nrpe.cfg.j2
dest={{ nrpe_conf_path }}/nrpe.cfg backup=yes
owner=root group=root mode=0644
notify: restart nrpe
- name: Modify nrpe configuration itself
tags: monitoring
tags:
- monitoring
- nrpe_hosts
lineinfile: dest=/etc/nagios/nrpe.cfg
regexp="^allowed_hosts="
line="allowed_hosts={{ nrpe_allowed_hosts }}"
......
{% if inventory_hostname in groups.standalone %}
command[check_consumer_proc]=/usr/lib64/nagios/plugins/check_procs -a '/usr/bin/argo-egi-consumer.py' -c 1:10
command[check_consumer_log]=/usr/bin/sudo /usr/local/bin/check_consumer_log
{% endif %}
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 10% -c 5%
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment