-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netdata uses obsolete procfs for conntrack data - netfilter.plugin #161
Comments
It does not use files in It is using It just needs the connection tracker statistics: # cat /proc/net/stat/nf_conntrack
entries searched found new invalid ignore delete delete_list insert insert_failed drop early_drop icmp_error expect_new expect_create expect_delete search_restart
0000071e 0760e6ff 8c03e663 00522d9e 001e9e1a 00ac099f 006c61af 005a1da9 003fe1df 00000000 0000053a 00000000 00021251 00000029 00004b29 000069a6 00000000
0000071e 00b57258 0f2d9e94 0026027a 00010d90 007c689a 001a408f 0017d10c 00239697 00000000 00000000 00000000 00000000 00000007 0000294d 00001de8 00000000
0000071e 0044e878 057c5a59 001b46d7 0000a2ba 008c734b 00150fd0 0013a597 0019df0e 00000000 00000008 00000000 00000000 00000007 00001ae1 00001188 00000000
0000071e 004414c8 05638122 001b4c1a 0000a339 008d316b 00130a1a 0011a0a4 0019e489 00000000 00000008 00000000 00000000 00000005 00001bde 0000121b 00000000 Is |
Yeap! It is part of So, we are moving towards another plugin with external dependencies (libmnl) and special access rights... |
Be careful. Directly using You may not see this problem on your home router but when you read from |
@shartge they are talking about |
I see, yes. And to be sure, I just confirmed that accessing |
thanks! |
Another way to get the current netfilter connections is through The explanation of that value is:
https://www.kernel.org/doc/Documentation/networking/nf_conntrack-sysctl.txt I don't know if this value should be in the same plugin as this thread or into a separate one. What do you think @ktsaou ? |
I think this is a very nice idea. So I added it with PR #1273 and I also added an alarm based on the max value. Thank you for suggesting it. |
and I just merged it... |
Thanks to you for this great tool! |
I am refactoring the nfacct plugin to turn it to an external process that will work with setuid to root. I am trying to find if I can collect netfilter statistics with If you have any ideas how to do it, please post... |
Found it (reading the kernel is always a joy: And how conntrack uses it: https://github.com/formorer/pkg-conntrack-tools/blob/master/src/conntrack.c |
connection tracker statistics using libmnl (netlink) in PR #1963 |
merged it. |
In current kernels the procfs interface is obsolete. Could netdata query the conntrack data in an different way?
The text was updated successfully, but these errors were encountered: