Installing Darkstat on CentOS 6

The darkstat software is available in the rpmforge repository so you will need to install RPMforge first:

rpm -Uvh

Then install Darkstat with:

yum --enablerepo=rpmforge install darkstat

My scenario was to use darkstat to monitor traffic on a local 192.168.161.* network so I used the following command:

/usr/sbin/darkstat -i eth1 --no-dns -p 10001 -b --chroot /var/lib/darkstat  --export darkstat.db --import darkstat.db --user darkstat --pidfile /var/run/  -l

With the command above darkstat will display graphs at

I created a darkstat user, /var/lib/darkstat directory and chown darkstat /var/lib/darkstat. The first time running the command above you should omit the –import darkstat.db option as the database will not exist at that point.

Darkstat Darkstat


Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>