set port number by default to allow multiple checks
This commit is contained in:
parent
aace200270
commit
a465744013
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue