-
Notifications
You must be signed in to change notification settings - Fork 187
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
Added conntrack stats script #200
base: master
Are you sure you want to change the base?
Conversation
Thanks for this. One thing we are trying to do is convert these to use json. @VVelox Might be able to help get that done. |
@laf Ohh! Thanks. This looks like fun. That said sorry about disappearing and thanks for summoning me. :) |
@VVelox : What is the status of this PR ? |
Hi @angryp @Jellyfrog @VVelox . Can we get a re-execution of the tests for this PR? I don't mind submitting it myself to get the ball rolling and fix the Lint issues if that's OK with @angryp :) |
Thanks, @Jellyfrog I think I'm going to tackle this with a new, separate python script that queries the "ss" utility instead of "conntrack". It wasn't hard updating the perl script to output the data in JSON, but the "ss" utility replaces conntrack and the perl script doesn't grab TCP LISTENING port statistics which is the kiss of death imo. Besides, I think I can code it to be a bit more readable in python vs perl which I've always found to be a bit harder to parse. Anyway, if someone REALLY wants to get this perl script merged and add an application supporting it; I've attached the modified script here. It's basically done (note that it requires the perl JSON module now). |
This commit applies support for conntrack metrics gathering from Netfilter.
Originally, this was posted by @redneon in Cacti forums: https://forums.cacti.net/viewtopic.php?f=12&t=36629
I did reach out the author via e-mail and received his approval to redistribute the code, so here is the first step. LibreNMS core support commit is on it's way.