]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/munin/templates/munin.conf.erb
Reduce munin-html fork count to the minimum
[dsa-puppet.git] / modules / munin / templates / munin.conf.erb
index 519e033a6e73008c51c7012b4de133c09d3e0d95..e335a00f37d6ac4b9dba1684d5d678d2938d2228 100644 (file)
@@ -3,26 +3,14 @@
 ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
-includedir /etc/munin/munin-conf.d
-
-<% if hostname != "menotti" -%>
+# number of updaters to run
+max_processes 96
+rrdcached_socket /var/run/munin/rrdcached.sock/sock
 
-dbdir   /var/lib/munin
-htmldir /var/cache/munin/www
-logdir  /var/log/munin
-rundir  /var/run/munin
-tmpldir /etc/munin/templates
+#html_strategy cgi
 graph_strategy cgi
 
-<%= out = ''
-    scope.lookupvar('site::localinfo').keys.sort.each do |node|
-       if not scope.lookupvar('site::localinfo')[node]['no_munin']
-          out += '[' + node + ']
-    address ' + node + '
+# Reduce memory usage spikes and OOM mails
+max_html_jobs 1
 
-'
-       end 
-    end
-out
-%>
-<% end -%>
+includedir /etc/munin/munin-conf.d