44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
|
### {{ ansible_managed }}
|
||
|
|
||
|
log_facility=daemon
|
||
|
pid_file={{ monitored_nrpe_pidfile }}
|
||
|
debug=0
|
||
|
|
||
|
{% if monitored_nrpe_server_address %}server_address={{ monitored_nrpe_server_address }}
|
||
|
{% else %}# server_address=
|
||
|
{% endif %}
|
||
|
server_port={{ monitored_nrpe_port }}
|
||
|
|
||
|
nrpe_user={{ monitored_user }}
|
||
|
nrpe_group={{ monitored_group }}
|
||
|
|
||
|
allowed_hosts=127.0.0.1,{{ monitored_server_ips|join(',') }}
|
||
|
|
||
|
dont_blame_nrpe={% if monitored_nrpe_dont_blame == "1" %}1
|
||
|
{% else %}0
|
||
|
{% endif %}
|
||
|
allow_bash_command_substitution={% if monitored_nrpe_allow_bash_command_substitution == "1" %}1
|
||
|
{% else %}0
|
||
|
{% endif %}
|
||
|
|
||
|
{% if monitored_nrpe_command_prefix %}command_prefix={{ monitored_nrpe_command_prefix }}
|
||
|
{% else %}# command_prefix=
|
||
|
{% endif %}
|
||
|
|
||
|
command_timeout={{ monitored_nrpe_command_timeout }}
|
||
|
connection_timeout={{ monitored_nrpe_connection_timeout }}
|
||
|
|
||
|
#allow_weak_random_seed=1
|
||
|
|
||
|
|
||
|
# INCLUDE CONFIG FILE
|
||
|
{% if monitored_nrpe_include_files %}{% for file in monitored_nrpe_include_files %}include={{ monitored_nrpe_basedir }}/{{ file }}
|
||
|
{% endfor %}{% endif %}
|
||
|
|
||
|
|
||
|
# INCLUDE CONFIG DIRECTORY
|
||
|
{% if monitored_nrpe_include_dirs %}{% for dir in monitored_nrpe_include_dirs %}include_dir={{ monitored_nrpe_basedir }}/{{ dir }}
|
||
|
{% endfor %}{% endif %}
|
||
|
|
||
|
|