LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-30-2022, 06:06 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
traffic on server


hi all,

how can we monitor network traffic or throughout on servers ? is it possible to put some large file on server and keep downloading via wget. Wheter this helps. please suggest
 
Old 09-30-2022, 07:53 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by 1s440 View Post
hi all,

how can we monitor network traffic or throughout on servers ? is it possible to put some large file on server and keep downloading via wget. Wheter this helps. please suggest
The normal means is to use a network sniffer. To add to that wget will not give you what you want, you want to monitor traffic, and this means you need an adapter in promiscuous mode which will capture all network packet types. There should be applications you can run to perform network sniffing and it is a matter of filtering unwanted data out, and also setting it up to log and not overflow or rotate the logs.
 
Old 09-30-2022, 08:00 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,978

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
I don't really understand. Do you want to measure the speed of your network? Or you want to check the ongoing traffic somewhere? (Or something else??)
We have a lot of tools to do both of them, you can look for different solutions on the net. But without details hard to help you.
 
Old 09-30-2022, 08:07 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by 1s440 View Post
hi all,
how can we monitor network traffic or throughout on servers ? is it possible to put some large file on server and keep downloading via wget. Wheter this helps. please suggest
You've asked about measuring bandwidth/traffic before:
https://www.linuxquestions.org/quest...th-4175716612/

...and you have Nagios installed. As others said, your question is too vague. But monitoring bandwidth via SNMP through Nagios is certainly doable, as is using the scripts you wre given in your other post for manual checking. What is your actual goal??
 
1 members found this post helpful.
Old 09-30-2022, 08:30 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
Yes, what is your actual goal?

More details are needed, otherwise it remains an unproductive guessing game.

That said, here's my current guess: vnstat.
 
Old 09-30-2022, 08:05 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
I'm going to take a shot in the dark and suggest that you might want to take a look at iotop.
 
Old 10-05-2022, 03:28 AM   #7
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
Yes, what is your actual goal?

More details are needed, otherwise it remains an unproductive guessing game.

That said, here's my current guess: vnstat.

I wanted to monitor the network usage traffic for a host. Is it possible with wget ?
 
Old 10-05-2022, 03:30 AM   #8
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
I'm going to take a shot in the dark and suggest that you might want to take a look at iotop.
iotop is similar to atop i guess.
 
Old 10-05-2022, 03:31 AM   #9
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I don't really understand. Do you want to measure the speed of your network? Or you want to check the ongoing traffic somewhere? (Or something else??)
We have a lot of tools to do both of them, you can look for different solutions on the net. But without details hard to help you.
yes i wanted to check ongoing traffic on the server not the speed. something like tcpdump ?

Last edited by 1s440; 10-05-2022 at 03:34 AM.
 
Old 10-05-2022, 04:55 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,978

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
wget is not the right tool for this. Otherwise why don't you try them (iotop, tcpdump, vnstat, whatever)? We don't really know what are you looking for therefore we can't tell you if these tool will provide the required data (for you).
 
Old 10-05-2022, 07:45 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by 1s440
I wanted to monitor the network usage traffic for a host. Is it possible with wget ?
...and...
Quote:
Originally Posted by 1s440 View Post
iotop is similar to atop i guess.
...and...
Quote:
Originally Posted by 1s440
yes i wanted to check ongoing traffic on the server not the speed. something like tcpdump ?
Again: you have Nagios installed, along with iperf and have SNMP available. That is fully capable of logging/tracking/alerting on bandwidth usage, and you've been using them for years now.

Saying you want to "monitor" is too vague to answer...monitor how? How often? And do what with the information?? On what system? Same network/different?? You STILL omit details that would let anyone help you. Again: Nagios ALREADY DOES THIS, you already have it, and you've had years of experience using it. What, exactly, are you having problems with??
https://www.nagios.com/solutions/bandwidth-monitoring/
https://exchange.nagios.org/director...-and-Bandwidth
https://exchange.nagios.org/director...dwidth/details

Further (as you well know), you can write your own plugin using whatever you want for Nagios, iotop is one thing you can use, as is (again) SNMP. And have you read the man pages for iperf or tcpdump, and thought about what they do, and why they aren't good for what you're after?

Last edited by TB0ne; 10-05-2022 at 07:49 AM.
 
Old 11-04-2022, 10:06 AM   #12
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 116

Rep: Reputation: 13
you might want to try
nethogs

or you could use iptables
If you put entries into there without a target it will still count packets and bytes.
 
  


Reply



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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
how to find http traffic and mail traffic alone? basbosco Linux - General 1 06-07-2005 10:29 PM
ifconfig traffic != emule traffic bobwall Linux - Networking 0 02-06-2005 09:59 AM
ICMP traffic archives/writing ICMP traffic in a file maia_1 Programming 0 07-20-2004 03:43 AM
Wireless traffic stomps isdn traffic on gateway machine Radix999 Linux - Wireless Networking 0 11-14-2003 12:54 AM

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

All times are GMT -5. The time now is 02:57 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