From: Tom Hughes Date: Fri, 25 Jul 2014 23:02:39 +0000 (+0100) Subject: Don't include smart error logs in munin checks X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/7470eb52bfa0d9bb890c29558b91c445860a2969?hp=6ae3dbf336935b1c0ab10ebe1ac27abc590b8a73 Don't include smart error logs in munin checks --- diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 03bcee613..847425e53 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -325,6 +325,8 @@ node[:block_device].each do |name,attributes| if attributes[:vendor] == "ATA" munin_plugin "smart_#{name}" do target "smart_" + conf "smart.erb" + conf_variables :disk => name end else munin_plugin "smart_#{name}" do diff --git a/cookbooks/munin/templates/default/smart.erb b/cookbooks/munin/templates/default/smart.erb new file mode 100644 index 000000000..bcb813a21 --- /dev/null +++ b/cookbooks/munin/templates/default/smart.erb @@ -0,0 +1,4 @@ +# DO NOT EDIT - This file is being maintained by Chef + +[smart_<%= @disk %>] +env.smartargs -H