LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Any Tool which can monitor upload/ download in network? (https://www.linuxquestions.org/questions/linux-newbie-8/any-tool-which-can-monitor-upload-download-in-network-790094/)

your_shadow03 02-18-2010 10:53 PM

Any Tool which can monitor upload/ download in network?
 
I have few Windows and Linux Machines and am in verse to monitor what upload and download is being performed as the network system are running in slow pace.Any one who can recommend a tool or utility which can track uploads and download in a network.If it can track who is downloading or uploading with what size of data could really benefit.

scheidel21 02-19-2010 07:58 AM

You could try netop also if you can get access to a mirrored port on a switch that uploads to your router, or can place a hub between your computers and the Router, or lastly you could place a computer bewtween your router and network, then you could monitor it easier with a multitude of other software, even in realtime using something like iftop.

your_shadow03 02-21-2010 08:30 AM

It seems to be Paid one.
Any Free software?

theNbomr 02-21-2010 09:40 AM

You could contrive some netfilter rules with iptables, which would selectively log the traffic of interest. The results can be inspected using the '-L -v' commands of iptables. This can be done with a script that parses the resulting output of iptables to maintain history logs, etc.
Example:
Code:

iptables -t filter -N HOSTX
iptables -t filter -I HOSTX --source hostx.your.domain
iptables -t filter -I HOSTX --dest hostx.your.domain
iptables -t filter -I INPUT -j HOSTX
iptables -t filter -I OUTPUT -j HOSTX

This script creates a chain 'HOSTX', which does nothing, but is invoked every time a packet passes the INPUT or OUTPUT chain of the filter table. These rules would cause all traffic to or from the host named 'hostx.your.domain' to be seen by the chain 'HOSTX'. A side effect of this is that the packet and byte count of the chain 'HOSTX' is accumulated by the filter. Later, perhaps on a scheduled interval, we can inspect the packet and byte count:
Code:

iptables -t filter -L -v
The accumulated counts can be zeroed with the -Z switch.
For your application, you would want to create rules in the INPUT, OUTPUT, or FORWARD chains that are selective about hosts, domains and ports of interest to you.

This would run on an individual server, monitoring only traffic seen on the server. If you actually want to monitor your network at large, you will need to use some kind of sniffer, like tcpdump (or it's GUI cousin, wireshark), but this also requires assistance from a smart switch on a switched ethernet network.

--- rod.

scheidel21 02-22-2010 07:59 AM

nettop is not a paid solution it is free, you could also try nagios, the free version, and several others

centosboy 02-23-2010 09:34 AM

i think cacti or mrtg would be best for this.
http://www.cacti.net/screenshots.php

scheidel21 02-23-2010 11:10 AM

But cacti only works on SNMP managed devices, if he has an unmanaged switch he is likely to not be able to get any data. I have that problem in my network, only my router is managed so I can monitor those ports but I have no real idea of the other traffic except what I glean from netop and iftop which sits on a hub at the point where all the daisy chained switches connect to the router LAN port. I wish I had managed switches, though I am looking at getting one and daisy chaining each swith to it so at least I can isolate network traffic to individual switches.

centosboy 02-24-2010 04:38 AM

Quote:

Originally Posted by scheidel21 (Post 3873968)
But cacti only works on SNMP managed devices, if he has an unmanaged switch he is likely to not be able to get any data. I have that problem in my network, only my router is managed so I can monitor those ports but I have no real idea of the other traffic except what I glean from netop and iftop which sits on a hub at the point where all the daisy chained switches connect to the router LAN port. I wish I had managed switches, though I am looking at getting one and daisy chaining each swith to it so at least I can isolate network traffic to individual switches.

nettop?? i assume you mean ntop..

scheidel21 02-24-2010 07:27 AM

yea sorry


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