Search This Blog

Thursday, December 8, 2011

Network monitoring with vnstat.

vnstat tool is use to monitor network traffic live / hourly/daily/weekly /monthly.



This is useful for linux network monitoring.

this is console based monitoring tool but GUI can also be configured with the help of PHP server.


Ref: http://humdi.net/vnstat/

Let us monitor one fo the server.

After installing the correct rpm .
First update the vnstat for specific port(In my case i wanted to monitor eth0)
vnstat -u -i eth0
once you update the database
just run the command press ctrl-c to stop ,this will produce the network traffic summery for specified interface.

# vnstat -l -i eth0

Monitoring eth0... (press CTRL-C to stop)

rx: 44 kbit/s 23 p/s tx: 132 kbit/s 19 p/s


eth0 / traffic statistics

rx | tx
--------------------------------------+------------------
bytes 1.35 MiB | 1.66 MiB
--------------------------------------+------------------
max 224 kbit/s | 368 kbit/s
average 48.03 kbit/s | 58.77 kbit/s
min 20 kbit/s | 0 kbit/s
--------------------------------------+------------------
packets 5332 | 4217
--------------------------------------+------------------
max 133 p/s | 127 p/s
average 23 p/s | 18 p/s
min 4 p/s | 1 p/s
--------------------------------------+------------------
time 3.85 minutes

No comments:

Post a Comment