redis: In instance mode, ensure to replace the nrpe check_redis with the instance check script

This commit is contained in:
Ludovic Poujol 2018-12-05 16:37:52 +01:00
parent c9ba37614c
commit f2f595af13
2 changed files with 13 additions and 0 deletions

View file

@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
### Fixed
* nginx: Munin url config is now a template to insert the server-status prefix
* redis: In instance mode, ensure to replace the nrpe check_redis with the instance check script
### Security

View file

@ -12,6 +12,18 @@
dest: /etc/nagios/nrpe.d/evolix.cfg
regexp: '^command\[check_redis\]=.+'
replace: 'command[check_redis]=/usr/lib/nagios/plugins/check_redis -H 127.0.0.1'
when: redis_instance_name is undefined
notify: restart nagios-nrpe-server
tags:
- redis
- nrpe
- name: Replace check_tcp or check_redis by check_redis_instances for NRPE
replace:
dest: /etc/nagios/nrpe.d/evolix.cfg
regexp: '^command\[check_redis\]=.+'
replace: 'command[check_redis]=/usr/local/lib/nagios/plugins/check_redis_instances'
when: redis_instance_name is defined
notify: restart nagios-nrpe-server
tags:
- redis