forked from evolix/ansible-roles
redis: In instance mode, ensure to replace the nrpe check_redis with the instance check script
This commit is contained in:
parent
c9ba37614c
commit
f2f595af13
|
@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* nginx: Munin url config is now a template to insert the server-status prefix
|
* 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
|
### Security
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,18 @@
|
||||||
dest: /etc/nagios/nrpe.d/evolix.cfg
|
dest: /etc/nagios/nrpe.d/evolix.cfg
|
||||||
regexp: '^command\[check_redis\]=.+'
|
regexp: '^command\[check_redis\]=.+'
|
||||||
replace: 'command[check_redis]=/usr/lib/nagios/plugins/check_redis -H 127.0.0.1'
|
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
|
notify: restart nagios-nrpe-server
|
||||||
tags:
|
tags:
|
||||||
- redis
|
- redis
|
||||||
|
|
Loading…
Reference in a new issue