Modules:NTOP
From Wiki Centreon
| Languages: |
English |
(This article was writen by a French user who have an bad english, so fix me !)
This article was tested on a Debian Etch with Nagios 2.10, Centreon 1.4.2.4 and NTOP 1.3
The "Installation" part was inspire to http://forum.centreon.com/showthread.php?t=4435&page=2
Requirements
Dialog : apt-get install dialog
Bison : apt-get install bison
Flex (to install libpcap) :
1. wget http://prdownloads.sourceforge.net/flex/flex-2.5.35.tar.gz?download
2. tar -xzvf flex-2.5.35.tar.gz
3. ./configure --prefix=/usr
4. make
5. make install
6. ln -s libfl.a /usr/lib/libl.a (some software, search flex in /usr/lib, to fix it we create a symbolinc link)
In a same case, the software which use flex, search lex (because is the old name of flex). To fix it, you can create a script shell :
cat > /usr/bin/lex << "EOF"
#!/bin/sh
exec /usr/bin/flex -l "$@"
EOF
chmod 755 /usr/bin/lex
Libpcap :
1. wget http://downloads.sourceforge.net/libpcap/libpcap-0.8.1.tar.gz?modtime=1072656000&big_mirror=0
2../configure --prefix=/usr
3. make
4. make install
Installation
1. Download
cd /usr/local/centreon/www/modules/
wget http://download.oreon-project.org/index.php?id=67
2. Uncompress
tar -xzvf NTOP-1.3.tar.gz
3. Install
cd NTOP-1.3.tar.gz
./install
cd ntop_src
tar -xzvf ntop-3.2.tgz
cd ntop-3.2
./autogen.sh (3.3)
./configure --prefix=/usr/local & make & make install
make
make install
4. Creation of the user password
/usr/local/bin/ntop -u user -A
5. Launch NTOP
/usr/local/bin/ntop &
6. Check
In your naviguator web tape : http://@IPduServeur:3000
If you have a page, it's ok :-)
Configuration in Centreon
Now, NTOP is in running and it works in http://@IPduServeur:3000, but we want that NTOP is in Centreon.
In the web interface of Centreon go to Options - Options Générales - NTOP
NTOP Informations :
- Utilisateur : the user who is defined in the step 4 of Installation part
- Mot de passe : the password which is defined in the step 4 of Installation part
- Protocole : HTTP
- Port : 3000
- NTOP URL : localhost
- Ntop direct connection from Oreon server (IP) : localhost
Informations de démarrage :
- Interface par défaut : eth0
- Chemin d'installation : /srv/ntop/
- Script de redémarrage : /usr/local/bin/ntop
- Arguments : Unchanged
And now in the Centreon menu you can clic on NTOP and normally you have NTOP in Centreon !!!
I have made this procedure during the installation of my server, so i hope i haven't forgot something ! Once again, sorry for my english !
Have fun :-)

