hrix/munin-plugin-ip_conntrack

reading /proc is very slow

Closed this issue · 2 comments

On high loaded systems it's too long to read the whole conntrack table

# time /etc/munin/plugins/ip_conntrack 
max_ip_conntrack.value 262144
used_ip_conntrack.value 81368

real    0m42.178s
user    0m0.024s
sys     0m36.662s

The fast way to get conntrack count is

# sysctl net.netfilter.nf_conntrack_count
net.netfilter.nf_conntrack_count = 73592

Thanks for the script

hrix commented

Thanks. I'll fix by your suggestion.
After testing on some servers, update the github.

hrix commented

fixed them (Munin-node plugin & Nagior nrpe plugin). Thanks