29 lines
681 B
Django/Jinja
29 lines
681 B
Django/Jinja
{{ 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
|
|
|
|
{% if nrpe_enable_ssl %}
|
|
ssl_client_certs=2
|
|
{% if nrpe_remote_ssl_ca_file is defined %}
|
|
ssl_cacert_file=/etc/nagios/ca.crt
|
|
{% endif %}
|
|
{% if nrpe_remote_ssl_cert_file is defined %}
|
|
ssl_cert_file=/etc/nagios/server.crt
|
|
{% endif %}
|
|
{% if nrpe_remote_ssl_key_file %}
|
|
ssl_privatekey_file=/etc/nagios/server.key
|
|
{% endif %}
|
|
ssl_logging=2
|
|
{% endif %}
|
|
|
|
include=/etc/nagios/nrpe_local.cfg
|