get bandwidth from host
I need to monitor the outgoing network bandwidth per host and store it in a database. Is there any script that receives the destiny host as a parameter and then prints only de bandwidth used to the console? I have tried iftop, ntop and none of them was easy to parse the output. Thanks for your help
|
Sounds like "vnstat" will do what you want.
Code:
vnstat -l -ru -i ethx -ru = rate unit bits/bytes -i = self explanatory vnstat itself stores the bandwidth usage etc in a database of its own. |
All times are GMT -5. The time now is 10:10 PM. |