Darkstat

-----

install Darkstat in CentOS

#  yum install darkstat

#  darkstat -i eth0

Test:

http://ip-address:667

-------------------------------xxxx-----------------------------------

Darkstat is a free source network monitoring tool. It is a packet sniffer which runs as a background process and provides the statistics of a web browser, captures network traffic and serves reports over HTTP. Installation of Darkstat is explained in this manual.

 

Features

To install Darkstat

First install the dependency packages to start the Darkstat installation.

[root@linuxhelp ~]# yum install libpcap libpcap-devel

yum install darkstat

Download the Darkstat package with the help of  wget command.

[root@linuxhelp ~]# wget https://unix4lyfe.org/darkstat/darkstat-3.0.718.tar.bz2

                  wget https://unix4lyfe.org/darkstat/darkstat-3.0.719.tar.bz2

--2016-09-22 07:36:31--  https://unix4lyfe.org/darkstat/darkstat-3.0.718.tar.bz2 Resolving unix4lyfe.org (unix4lyfe.org)... 64.62.188.248, 2001:470:1:41::403e:bcf8 Connecting to unix4lyfe.org (unix4lyfe.org)|64.62.188.248|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 116044 (113K) [application/x-bzip2] Saving to: ‘darkstat-3.0.718.tar.bz2’  100%[=========================================================================================>] 116,044      166KB/s   in 0.7s     2016-09-22 07:36:33 (166 KB/s) - ‘darkstat-3.0.718.tar.bz2’ saved [116044/116044]

Extract the downloaded package by utilizing the following command.

[root@linuxhelp ~]# tar xvjf darkstat-3.0.7 darkstat-3.0.718/ darkstat-3.0.718/acct.c darkstat-3.0.718/configure darkstat-3.0.718/db.h darkstat-3.0.718/html.h darkstat-3.0.718/darkstat.c darkstat-3.0.718/dns.h . . . darkstat-3.0.718/cdefs.h darkstat-3.0.718/COPYING.GPL

Move to the extracted directory.

[root@linuxhelp ~]# cd darkstat-3.0.719

Then execute the below scripts to install Darkstat.

[root@linuxhelp darkstat-3.0.718]# ./configure && make && make install

 LINK   darkstat /usr/bin/install -c -d /usr/local/sbin /usr/bin/install -c -m 555 darkstat /usr/local/sbin /usr/bin/install -c -d /usr/local/share/man/man8 /usr/bin/install -c -m 444 darkstat.8 /usr/local/share/man/man8 [root@tswl darkstat-3.0.719]#

[root@linuxhelp darkstat-3.0.718]# Start Darkstat services by simply executing the below command.  [root@linuxhelp darkstat-3.0.718]# darkstat -i eno16777736

                                # darkstat -i eth0

Get into the browser from the terminal by running the following command.  [root@linuxhelp darkstat-3.0.718]# firefox

Dive into http://<IP address>:667 and start monitoring the ethernet interface.

---