]> git.openstreetmap.org Git - chef.git/commitdiff
Exclude fd0 from diskstats munin plugin
authorTom Hughes <tom@compton.nu>
Tue, 28 Nov 2017 08:35:29 +0000 (08:35 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 28 Nov 2017 08:35:29 +0000 (08:35 +0000)
cookbooks/munin/recipes/default.rb
cookbooks/munin/templates/default/diskstats.erb [new file with mode: 0644]

index 9a6b6e696cff818797c4a17309ec0db5f1f4255e..3b1b3e385fa110330f19f573e51c7025d3409af8 100644 (file)
@@ -98,6 +98,10 @@ end
 munin_plugin "df"
 munin_plugin "df_inode"
 
+munin_plugin_conf "diskstats" do
+  template "diskstats.erb"
+end
+
 munin_plugin "diskstats"
 munin_plugin "entropy"
 munin_plugin "forks"
diff --git a/cookbooks/munin/templates/default/diskstats.erb b/cookbooks/munin/templates/default/diskstats.erb
new file mode 100644 (file)
index 0000000..aa9f65e
--- /dev/null
@@ -0,0 +1,4 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+[diskstats]
+env.exclude fd0