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
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
---
- include_role:
name: remount-usr
- name: Is nrpe present ?
stat:
path: /etc/nagios/nrpe.d/evolix.cfg
@ -19,7 +22,7 @@
lineinfile:
name: /etc/nagios/nrpe.d/evolix.cfg
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
when: nrpe_evolix_config.stat.exists