LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2001, 09:50 AM   #1
teeno
Member
 
Registered: Jul 2001
Posts: 72

Rep: Reputation: 15
Network monitoring


Hi All,

Is there any software that will monitor network activity? I want to be able to see who has open telnet sessions though my Linux firewall and also the bandwidth being used.
 
Old 08-29-2001, 05:23 AM   #2
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
# netstat -peat
Should do this for you.
The -p gives you the process ID, very useful.
 
Old 08-29-2001, 06:01 AM   #3
teeno
Member
 
Registered: Jul 2001
Posts: 72

Original Poster
Rep: Reputation: 15
That's useful but it doesn't show open telnet sessions.

The Linux box is being used as a gateway. All the windows users on the network connect though the Linux box to access our AS400 server in the US. From time to time I need to reboot the Linux box and it would be nice if I could see if anyone on the network is connected before I shutdown the server. I would also need the IP address of the computers connected so that I can inform the user that they will be disconnected.

Is this possible?

Thank you
 
Old 08-29-2001, 06:41 AM   #4
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
Have you tried it?

It doesnt show you bandwidth but it certainly shows ip addresses and open (ESTABLISHED) connections. It also shows whch ports connections are on.

You can use the netstat command to see Tx and RX data as well,
you should beable to work out the traffic over time to obtain bandwidth.
Regards.
 
Old 08-29-2001, 06:46 AM   #5
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
PS netstat -t and netstat -s used with a sed and awk script over time will beable to calculate everything you need to know.
 
Old 08-29-2001, 07:14 AM   #6
teeno
Member
 
Registered: Jul 2001
Posts: 72

Original Poster
Rep: Reputation: 15
Your right netstat does show all the information I need.

I used netstat -M to show all the masquerade connections.

Thank you.
 
Old 08-29-2001, 01:26 PM   #7
coopergr
LQ Newbie
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Red hat
Posts: 9

Rep: Reputation: 0
Thumbs up Bandwidth Monitoring

Hi,

Check out www.mrtg.org - this is an excellent utility for monitoring bandwidth on an SNMP enabled device.

I am using it on Cisco 7204, 2924, & 6509's, but you can also run it from other devices once it is installed.

It is a PERL based utility, I am using it on WIN2K and publishing the bandwidth graphs to IIS 5.0, but you can run it on Linux and publish it on Apache no problem.

L8r
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network monitoring ltodd2 Linux - Software 1 08-05-2005 05:20 AM
Network monitoring shivaligupta Linux - Networking 4 02-02-2005 09:45 AM
network monitoring saavik Linux - Networking 1 07-09-2004 08:43 AM
Network monitoring manubettik Linux - General 1 07-09-2001 06:23 PM
Network Monitoring Nezar Linux - Networking 3 07-05-2001 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration