puppet 4 foo
[mirror/dsa-puppet.git] / modules / munin / templates / munin-node.plugin.conf.erb
index ac02b0e..872ac55 100644 (file)
@@ -19,7 +19,7 @@ group adm, maillog
 user root
 <%=
 out = ""
-if has_variable?("mta") and mta == "exim4"
+if has_variable?("mta") and @mta == "exim4"
   out="
 [exim_mail*]
 user Debian-exim
@@ -63,7 +63,7 @@ env.critical 98
 
 <%=
 out = ""
-if has_variable?("mta") and mta == "postfix"
+if has_variable?("mta") and @mta == "postfix"
   out="
 [postfix_mailqueue]
 user postfix
@@ -90,7 +90,7 @@ group maillog
 [bind*]
 group bind
 <%=
-out = case hostname
+out = case @hostname
   when "geo1","geo2","geo3" then "env.logfile /var/log/bind9/geoip-query.log"
   else "env.logfile /var/log/bind9/named-query.log"
 end
@@ -101,6 +101,10 @@ out
 [diskstats]
 env.exclude sbuild,schroot
 
+# filter out all the short-lived filesystems for df*:
+[df*]
+env.exclude_re ^/dev$ ^/run/.*$ ^/srv/piuparts-workspace/tmp.*$ ^/sys/.*$ ^/var/lib/schroot/mount/.*$
+
 <% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
 # Workaround for https://bugs.debian.org/767102
 [df*]