]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/recipes/default.rb
Avoid shelling out to sysctl when we can read /proc/sys
[chef.git] / cookbooks / munin / recipes / default.rb
index 33f51097ea44839c2064d4ac6822eb1afcfd65eb..3a5be0d61513b92a9b7a0cdae4e1b1c488318095 100644 (file)
@@ -116,7 +116,7 @@ else
   end
 end
 
-if %x{sysctl -n net.ipv4.ip_forward}.chomp == "1"
+if File.read("/proc/sys/net/ipv4/ip_forward").chomp == "1"
   munin_plugin "fw_packets"
 else
   munin_plugin "fw_packets" do