Fixed location for nrpe commands.d
This commit is contained in:
parent
3c74b0d166
commit
e88ce4b94d
2 changed files with 3 additions and 2 deletions
|
@ -48,9 +48,9 @@ monitoring_nrpe:
|
|||
- name: nrpe
|
||||
- enable: true
|
||||
- watch:
|
||||
- file: /etc/nagios/commands.d
|
||||
{% if grains['os_family'] == 'Arch' %}
|
||||
- file: /etc/nrpe/commands.d
|
||||
{% if grains['os_family'] == 'Arch' %}
|
||||
- file: /etc/nrpe/nrpe.cfg
|
||||
{% else %}
|
||||
- file: /etc/nagios/nrpe.cfg
|
||||
{% endif %}
|
||||
|
|
1
states/systems/core/monitoring/sudoers.d/nrpe
Normal file
1
states/systems/core/monitoring/sudoers.d/nrpe
Normal file
|
@ -0,0 +1 @@
|
|||
nrpe ALL=(root) NOPASSWD: /bin/systemctl
|
Loading…
Add table
Reference in a new issue