1) Installer CentOS
2) Ajouter le dépot rpmforge :
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
3) Installer cacti et mysql-server :
yum install cacti mysql-server
4) Démarrer mysql-server :
/etc/init.d/mysql-server start
5) Config de sql-server :
/usr/bin/mysqladmin -u root password 'yourpassword'
/usr/bin/mysqladmin -u root -p create cacti
puis,
[root@cacti-appliance ~]# /usr/bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 5.0.95 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> GRANT ALL ON cacti.* TO 'cactiuser'@'localhost' IDENTIFIED BY 'CACTIUSER-PASSWORD-GOES-HERE';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 5.0.95 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> GRANT ALL ON cacti.* TO 'cactiuser'@'localhost' IDENTIFIED BY 'CACTIUSER-PASSWORD-GOES-HERE';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
5) Création de la base sql :
/usr/bin/mysql cacti -u cactiuser -p < /var/www/cacti/cacti.sql
6) Modifier
/var/www/cacti/include/config.php en indiquant le bon utilisateur (cactiuser) et le mot de passe
7) Modifier le fichier /etc/httpd/conf.d/cacti.conf pour permettre l'accès au serveur depuis d'autres machines/réseau
8) Démarrer le serveur web :
/etc/init.d/httpd start
9) Naviguer à l'adresse http://@IPduserveur/cacti/
10) Se laisser guider...