D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Bandwidth monitoring script

 

All,

I'm looking into something that monitors incoming and outgoing
bandwidth on a Linux machine; ideally something that outputs the
average values per minute (or even second) to a log file that I can
then scrutinize.

The machine runs SLES11 and runs several daemons (httpd, smtpd, sshd)
while also working as a router for a LAN with about a dozen machines
behind it. I think I need a faster connection to the internet but I
want to be 100% sure that a) this is the case and b) it isn't just a
matter of one process/machine taking up most of the bandwidth.
/sbin/ifconfig gives the number of RX and TX packets as well as bytes,
so I can write a script that just check it every x seconds and
subtracts the previous value, but I'm not 100% sure if these are
really the numbers I'm looking for.

Thanks.

Martijn.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html