LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   traffic on server (https://www.linuxquestions.org/questions/linux-networking-3/traffic-on-server-4175717314/)

1s440 09-30-2022 06:06 AM

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

rtmistler 09-30-2022 07:53 AM

Quote:

Originally Posted by 1s440 (Post 6383581)
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.

pan64 09-30-2022 08:00 AM

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.

TB0ne 09-30-2022 08:07 AM

Quote:

Originally Posted by 1s440 (Post 6383581)
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??

Turbocapitalist 09-30-2022 08:30 AM

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.

frankbell 09-30-2022 08:05 PM

I'm going to take a shot in the dark and suggest that you might want to take a look at iotop.

1s440 10-05-2022 03:28 AM

Quote:

Originally Posted by Turbocapitalist (Post 6383604)
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 ?

1s440 10-05-2022 03:30 AM

Quote:

Originally Posted by frankbell (Post 6383709)
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.

1s440 10-05-2022 03:31 AM

Quote:

Originally Posted by pan64 (Post 6383596)
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 ?

pan64 10-05-2022 04:55 AM

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).

TB0ne 10-05-2022 07:45 AM

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 (Post 6384380)
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?

KatrinAlec 11-04-2022 10:06 AM

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.


All times are GMT -5. The time now is 09:29 PM.