Saturday, December 30, 2017
HowTo Network traffic bandwidth monitoring with darkstat on Gentoo
HowTo Network traffic bandwidth monitoring with darkstat on Gentoo
Following the footsteps on installing darkstat on my old 266 Mhz FreeBSD machine Ive mirrored the install procedures on my 1.3 Ghz Pentium-M Gentoo Hardened server. This post will cover the installation and configuration of darkstat on a x86 machine running Gentoo Hardened stable.
Darstat captures network traffic, calculates statistics about usage, and serves reports over HTTP.
Darstat provides the following features:
- Traffic graphs, reports per host, shows ports for each host.
- Embedded web-server with deflate compression.
- Asynchronous reverse DNS resolution using a child process.
- Small. Portable. Single-threaded. Efficient. Uncomplicated.
- $ su
- # eix-sync
- # emerge --ask --tree --verbose darkstat
- # rc-update add darkstat default
- # vim /etc/conf.d/darkstat
INTERFACE="eth0"The next step is to start darkstat by running the following command:
DAYLOGFILE="darkstat.log"
- # /etc/init.d/darkstat start
- # /etc/init.d/darkstat status
Hope you enjoy darkstat. I find it extremely useful and refreshing.
Resources:
man darkstat
http://dmr.ath.cx/net/darkstat/
http://linux-bsd-sharing.blogspot.com/2008/10/howto-network-traffic-bandwidth.html