homeserver/roles/mgrote.munin-node/templates/munin-node.conf.j2
mg 7799f2a4fe munin 2.0: you can (not) rebuild (#202)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#202
Co-authored-by: mg <mg@noreply.git.mgrote.net>
Co-committed-by: mg <mg@noreply.git.mgrote.net>
2021-09-13 19:26:31 +02:00

66 lines
1.8 KiB
Django/Jinja

{{ file_header | default () }}
log_level {{ munin_node_log_level }}
log_file {{ munin_node_log }}
pid_file {{ munin_node_pid }}
background 1
setsid 1
user root
group root
# This is the timeout for the whole transaction.
# Units are in sec. Default is 15 min
global_timeout {{ munin_node_global_timeout }}
# This is the timeout for each plugin.
# Units are in sec. Default is 1 min
timeout {{ munin_node_plugin_timeout }}
# 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 }}