Some weeks ago I upgraded my server to SME7 so it was about time to upgrade the NTOP howto.
Those who do not know ntop: take a look at
http://www.ntop.org/overview.html.
There we go:
- Go to your server manager --> 'Software installer' --> 'Change software installer settings' and enable the CentOS software repositories
- Open a command line console and enter following commands:
- yum install gcc
- yum install gcc-c++
- yum install zlib-devel
- yum install libpng-devel
- yum install gdbm-devel
- if not yet installed download rrdtool-1.0.50-1.2.el4.rf.rpm (for example
here and install it (rpm -Uvh rrdtool-1.0.50-1.2.el4.rf.rpm)
- download the GD library from
http://www.boutell.com/gd/- tar xvzf gd-2.0.33.tar.gz ; cd gd-2.0.33 ; ./configure --prefix=/usr && make && make install
- download ntop 3.2 from
http://prdownloads.sourceforge.net/ntop/ntop-3.2.tgz?download- tar xvzf ntop-3.2.tgz ; cd ntop-3.2 ; ./configure && make && make install
- cd /etc/init.d ; wget
http://gerards.ws/sme/ntop/ntop ; chmod 755 ntop
- cd /etc ; wget
http://gerards.ws/sme/ntop/ntop.conf- Start ntop during system boot: ln -s /etc/rc.d/init.d/ntop /etc/rc.d/rc7.d/S88ntop
- mkdir /var/ntop
- Set admin password: ntop --db-file-path /var/ntop -A
- Start ntop: /etc/init.d/ntop start
- If you no longer need them, disable the CentOS software repositories.
And you're done! Access ntop at
http://YOUR_SERVER:3000If you would like to have ssl support (access ntop via http
s), you should also install openssl-devel before compiling ntop. Also enable it in /etc/ntop.conf .
If you would like to be able to access ntop from the outside of your local network, you need to open port 3000:
- config set ntop service access public status enabled TCPPort 3000
- signal-event remoteaccess-update
That's it.
<EDIT: updated URL's>