[SOLVED] Program to read stats counters from nftables

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
flyingrhino
Level 4
Level 4
Posts: 252
Joined: Sat Apr 04, 2015 8:55 pm

[SOLVED] Program to read stats counters from nftables

Post by flyingrhino »

Does anyone know of a program that can read the stats from nftables and present them in a nicer way?

I know how to get them directly from nft :
nft -nn --handle list ruleset

But it's not formatted for easy reading.
Ideally I'd like something that periodically reads the stats (bytes/packets counters) and presents graphs over a web interface, although any form of reading and easier presentation will be appreciated - even a nicely formatted tabbed text output would do.

Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
flyingrhino
Level 4
Level 4
Posts: 252
Joined: Sat Apr 04, 2015 8:55 pm

Re: [SOLVED] Program to read stats counters from nftables

Post by flyingrhino »

Such a program does not exist so I wrote it:

https://github.com/flyingrhinonz/nftwatch

Enjoy...
Locked

Return to “Networking”