set port number by default to allow multiple checks

This commit is contained in:
Tristan PILAT 2018-06-14 17:14:31 +02:00
parent aace200270
commit a465744013

View file

@ -1,4 +1,7 @@
--- ---
- include_role:
name: remount-usr
- name: Is nrpe present ? - name: Is nrpe present ?
stat: stat:
path: /etc/nagios/nrpe.d/evolix.cfg path: /etc/nagios/nrpe.d/evolix.cfg
@ -19,7 +22,7 @@
lineinfile: lineinfile:
name: /etc/nagios/nrpe.d/evolix.cfg name: /etc/nagios/nrpe.d/evolix.cfg
regexp: '^command\[check_memcached\]=' regexp: '^command\[check_memcached\]='
line: 'command[check_memcached]=/usr/local/lib/nagios/plugins/check_memcached.pl -H 127.0.0.1' line: 'command[check_memcached]=/usr/local/lib/nagios/plugins/check_memcached.pl -H 127.0.0.1 -p {{ memcached_port }}'
notify: restart nagios-nrpe-server notify: restart nagios-nrpe-server
when: nrpe_evolix_config.stat.exists when: nrpe_evolix_config.stat.exists