G
G
gremlintv22018-10-10 14:00:24
linux
gremlintv2, 2018-10-10 14:00:24

What utilities exist under linux to monitor the number of connections and their status on ports in the system?

Yes, I know that there is netstat, ss, iftop, nload, dstat, etc. etc.
But these utilities do not allow real-time monitoring of the number of connections on each port and their status.
Yes, this can be done through wath + bash scripting, but if you need to collect data, say, in Prometheus and display it on the board in Grafana (or another system for monitoring)? Are there such exporters?
A caveat - you need an open source tool. But if this does not exist, then what kind of okmeter can be used for this task?
I tried node_exporter, but it doesn't show information about connections on every port. Yes, and in general it is problematic to display the connection status through it: established - shows, time_wait is not. There is a conntrack_exporter but it is tailored for debian and has not been tested on other distributions

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2018-10-10
@Radjah

There is a conntrack mechanism for monitoring. Load the nf_conntrack module and use the conntrack command from the package of the same name to view the status of the connections.

S
Sergey Sashkin, 2018-10-18
@LexPex

vmstat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question