]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/munin.smart.erb
Ignore the "command failed" bit in the smartctl exit code
[chef.git] / cookbooks / hardware / templates / default / munin.smart.erb
index 8a09c838f94e438b92c75680bedf6485403599eb..1908f8e937d182357f05ce9427147a6f0e9356d1 100644 (file)
@@ -1,8 +1,9 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 [smart_<%= @disk[:munin] %>]
-<% if @disk[:driver] -%>
-env.smartargs -H -d <%= @disk[:driver] %>,<%= @disk[:id] %>
+<% if @disk[:smart] -%>
+env.smartargs -H -d <%= @disk[:smart] %>
 <% else -%>
 env.smartargs -H
 <% end -%>
+env.ignoreexit 4