]> git.openstreetmap.org Git - chef.git/commitdiff
Improve detection of nf_conntrack
authorTom Hughes <tom@compton.nu>
Mon, 24 Jun 2013 09:36:41 +0000 (10:36 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 24 Jun 2013 09:36:41 +0000 (10:36 +0100)
cookbooks/munin/recipes/default.rb

index 8769352c48400199a23228bd36a201bb483146e5..eac718fc004b2c23ab1e50be8246a53f334f449c 100644 (file)
@@ -101,7 +101,7 @@ munin_plugin "diskstats"
 munin_plugin "entropy"
 munin_plugin "forks"
 
-if File.exists?("/proc/net/ip_conntrack") or File.exists?("/proc/net/nf_conntrack")
+if node[:kernel][:modules].include?("nf_conntrack")
   munin_plugin "fw_conntrack"
   munin_plugin "fw_forwarded_local"
 else