summaryrefslogtreecommitdiff
path: root/templates/munin-node.conf.default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/munin-node.conf.default')
-rw-r--r--templates/munin-node.conf.default13
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/munin-node.conf.default b/templates/munin-node.conf.default
index c848f3d..befcae4 100644
--- a/templates/munin-node.conf.default
+++ b/templates/munin-node.conf.default
@@ -5,12 +5,10 @@
log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid
+
background 1
setseid 1
-# Which host/port to bind to;
-host <%= munin_host_real %>
-port <%= munin_port_real %>
user root
group 0
setsid yes
@@ -34,6 +32,15 @@ host_name <%= fqdn %>
# regular expression, due to brain damage in Net::Server, which
# doesn't understand CIDR-style network notation. You may repeat
# the allow line as many times as you'd like
+
<% real_munin_allow.split(':').each do |val| -%>
allow <%= '^'+val.gsub(/\./, '\.')+'$' %>
<% end -%>
+
+# Which address to bind to;
+host <%= munin_host_real %>
+# host 127.0.0.1
+
+# And which port
+port <%= munin_port_real %>
+