What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

how to get number of new TCP connectios on linux

Votes:

0

I have a linux machine and I need know how many NEW TCP connections there are in time. it's possible with PRTG ? what is the SNMP OID for ?

Look, it isn't the number of connections TCP in time, it's number of NEW TCP connections.

Thanks

prtg13 snmp snmp-sensor

Created on Jul 5, 2014 5:44:16 PM



1 Reply

Votes:

0

And how exactly should those connections be distinguished from existing connections? You'd have to have a base for that :)

You should use the SSH sensor to do that. Here are some commands that might be helpful:

How many connections are currently open? netstat --tcp -an | wc -l

How many connections to a certain port are open: netstat --tcp -an | grep :80 | wc -l

How many connections to a certain host are open: netstat --tcp -an | grep 192.168.1.1 | wc -l

If you could specify your question a bit more, maybe I can come up with something :)

Created on Jul 7, 2014 9:34:33 AM by  Stephan Linke [Paessler Support]

Last change on Jul 7, 2014 9:35:38 AM by  Stephan Linke [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.