With the goal of monitoring network and bandwidth traffic I used vnStat. vnStat is small and efficent console based application however I wanted something that could serve the statistic over HTTP and this is where darkstat fills the bill.
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
- # cd /usr/ports/net-mgmt/darkstat
- # make install clean
- # rehash
darkstat_enable="YES"Change the darkstat_interface to reflect your network interface (mine is rl0).
darkstat_interface="rl0"
Bellow you'll find a set of optional configurations flags that can be added to /etc/rc.conf:
darkstat_dir="/var/run/darkstat"Now that we have darkstat installed and configured let's start it:
darkstat_pidname="darkstat.pid"
darkstat_dropuser="nobody"
darkstat_flags=""
- # /usr/local/etc/rc.d/darkstat start
- # /usr/local/etc/rc.d/darkstat status
Hope you enjoy darkstat. I find it extremely useful and refreshing.
Resources:
http://dmr.ath.cx/net/darkstat/
man darkstat
No comments:
Post a Comment