2016-12-14 17:57:19 +00:00
|
|
|
### {{ ansible_managed }}
|
|
|
|
|
|
|
|
log_facility=daemon
|
2021-02-18 11:59:28 +00:00
|
|
|
{% if monitored_nrpe_pidfile %}pid_file={{ monitored_nrpe_pidfile }}
|
|
|
|
{% else %}# pid_file=
|
|
|
|
{% endif %}
|
2016-12-14 17:57:19 +00:00
|
|
|
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 %}
|
|
|
|
|
|
|
|
|