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 8769352..eac718f 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