]> 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 7fd1a0117b7612bf23c4d89b647959ba0f917583..1908f8e937d182357f05ce9427147a6f0e9356d1 100644 (file)
@@ -2,7 +2,8 @@
 
 [smart_<%= @disk[:munin] %>]
 <% if @disk[:smart] -%>
-env.smartargs -H -d <%= @disk[:smart] %> %>
+env.smartargs -H -d <%= @disk[:smart] %>
 <% else -%>
 env.smartargs -H
 <% end -%>
+env.ignoreexit 4