Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
d547c7f607
commit
096a3e0540
69 changed files with 1650 additions and 0 deletions
2
templates/nrpe/nagios-nrpe-server.j2
Normal file
2
templates/nrpe/nagios-nrpe-server.j2
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ ansible_managed | comment }}
|
||||
NRPE_OPTS="{{ nrpe_opts | default('-n') }}"
|
14
templates/nrpe/nrpe.cfg.j2
Normal file
14
templates/nrpe/nrpe.cfg.j2
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
log_facility=daemon
|
||||
debug=0
|
||||
pid_file=/var/run/nagios/nrpe.pid
|
||||
server_port=5666
|
||||
nrpe_user=nagios
|
||||
nrpe_group=nagios
|
||||
allowed_hosts={{ nrpe_allowed_hosts | sort | join(',') }}
|
||||
dont_blame_nrpe=0
|
||||
allow_bash_command_substitution=0
|
||||
command_timeout=60
|
||||
connection_timeout=300
|
||||
include=/etc/nagios/nrpe_local.cfg
|
6
templates/nrpe/nrpe_local.cfg.j2
Normal file
6
templates/nrpe/nrpe_local.cfg.j2
Normal file
|
@ -0,0 +1,6 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
{% for command in nrpe_commands | default([]) %}
|
||||
command[{{ command['name'] }}]={{ command['line'] }}
|
||||
{% endfor %}
|
||||
|
8
templates/nrpe/ovh.conf.j2
Normal file
8
templates/nrpe/ovh.conf.j2
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ ansible_managed | comment }}
|
||||
[default]
|
||||
endpoint={{ ovh_endpoint }}
|
||||
|
||||
[{{ ovh_endpoint }}]
|
||||
application_key={{ ovh_application_key }}
|
||||
application_secret={{ ovh_application_secret }}
|
||||
consumer_key={{ ovh_consumer_key }}
|
Loading…
Add table
Add a link
Reference in a new issue