Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

angryp
Copy link

@angryp angryp commented Oct 12, 2018

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.

@laf
Copy link
Member

laf commented Oct 13, 2018

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.

@VVelox
Copy link
Collaborator

VVelox commented Oct 14, 2018

@laf Ohh! Thanks. This looks like fun. That said sorry about disappearing and thanks for summoning me. :)

@angryp
Copy link
Author

angryp commented Oct 15, 2018

Hello @laf and @VVelox!

Will you require any assistance from my side?

@PipoCanaja
Copy link
Contributor

@VVelox : What is the status of this PR ?

@Jellyfrog Jellyfrog closed this Mar 18, 2021
@Jellyfrog Jellyfrog reopened this Mar 18, 2021
@bnerickson
Copy link
Contributor

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 :)

@Jellyfrog Jellyfrog closed this May 23, 2023
@Jellyfrog Jellyfrog reopened this May 23, 2023
@bnerickson
Copy link
Contributor

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).

conntrack.pl.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants