Fix NRPE config file permissions
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
7c2377748e
commit
0ce00beb99
2 changed files with 12 additions and 2 deletions
|
@ -233,16 +233,26 @@
|
||||||
tags:
|
tags:
|
||||||
- nagios_client
|
- nagios_client
|
||||||
|
|
||||||
|
- name: install nrpe config for the RabbitMQ checks
|
||||||
|
template:
|
||||||
|
src: "rabbitmq_args.ini.j2"
|
||||||
|
dest: "/etc/nrpe.d/rabbitmq_args.ini"
|
||||||
|
owner: root
|
||||||
|
group: nrpe
|
||||||
|
mode: 0640
|
||||||
|
when: inventory_hostname.startswith('rabbitmq')
|
||||||
|
tags:
|
||||||
|
- nagios_client
|
||||||
|
|
||||||
- name: install nrpe checks for the RabbitMQ cluster
|
- name: install nrpe checks for the RabbitMQ cluster
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}.j2"
|
src: "{{ item }}.j2"
|
||||||
dest: "/etc/nrpe.d/{{ item }}"
|
dest: "/etc/nrpe.d/{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0644
|
||||||
with_items:
|
with_items:
|
||||||
- check_rabbitmq_server.cfg
|
- check_rabbitmq_server.cfg
|
||||||
- rabbitmq_args.cfg
|
|
||||||
when: inventory_hostname.startswith('rabbitmq')
|
when: inventory_hostname.startswith('rabbitmq')
|
||||||
notify:
|
notify:
|
||||||
- restart nrpe
|
- restart nrpe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue