ansible-base/roles/munin-node/templates/munin-node.conf.j2
2020-08-23 17:55:09 +02:00

69 lines
1.7 KiB
Django/Jinja

#
# Example config-file for munin-node
#
log_level 4
log_file {{ munin_node_log }}
pid_file {{ munin_node_pid }}
background 1
setsid 1
user {{ munin_node_user }}
group {{ munin_node_group }}
# This is the timeout for the whole transaction.
# Units are in sec. Default is 15 min
# global_timeout 900
# This is the timeout for each plugin.
# Units are in sec. Default is 1 min
# timeout 60
# Regexps for files to ignore
ignore_file [\#~]$
ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$
# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
{% if munin_node_host_name %}
host_name {{ munin_node_host_name }}
{% endif %}
# A list of addresses that are allowed to connect. This must be a
# regular expression, since Net::Server does not understand CIDR-style
# network notation unless the perl module Net::CIDR is installed. You
# may repeat the allow line as many times as you'd like
{% for allowed_ip in munin_node_allowed_ips %}
allow {{ allowed_ip }}
{% endfor %}
# If you have installed the Net::CIDR perl module, you can use one or more
# cidr_allow and cidr_deny address/mask patterns. A connecting client must
# match any cidr_allow, and not match any cidr_deny. Note that a netmask
# *must* be provided, even if it's /32
#
# Example:
#
# cidr_allow 127.0.0.1/32
# cidr_allow 192.0.2.0/24
# cidr_deny 192.0.2.42/32
{% for allowed_cidr in munin_node_allowed_cidrs %}
cidr_allow {{ allowed_cidr }}
{% endfor %}
{% for denied_cidr in munin_node_denied_cidrs %}
cidr_deny {{ denied_cidr }}
{% endfor %}
# Which address to bind to;
host {{ munin_node_bind_host }}
# And which port
port {{ munin_node_bind_port }}