HOWTO Install CACTI 0.8.7c - Ubuntu (also for 0.8.7e)
1.- Download Cacti from official site
Last version: Cacti 0.8.7c
Released: Mon, 26 Jan 2009
Create a sub-directory to store cacti system
Directories: rra/ and log/ have to be owned by web manager
Creation of DB and permissions could be done by using Phpmyadmin
Then you have to import cacti.sql (included in cacti downloaded package)
And now we have to setup permissions in mysql
Edit include/config.php with data
Edit include/config.php as follow:
5.- Setup CRONTAB
Edit /etc/crontab
Add folowing line (According to my configuration)
6.- Go to Web
Go to:
You will be redirected to:
7.- Finish installation
Information Screen:
Selector Screen:
Dependency verification screen:
Welcome Screen (User/password=admin/admin):
Password setup screen:
Cacti Console:
1.- Download Cacti from official site
Last version: Cacti 0.8.7c
Released: Mon, 26 Jan 2009
WEB http://www.cacti.net/From console: (Go to WWW directory)
Package: cacti-0.8.7c.tar.gz
Remeber to pre-install necessary software (snmp/rrdtool binaries)
root@server:/var/www# apt-get install snmp snmpd rrdtool
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes extras:
librrd2
Paquetes sugeridos:
librrds-perl
Se instalarán los siguientes paquetes NUEVOS:
librrd2 rrdtool snmp snmpd
0 actualizados, 4 se instalarán, 0 para eliminar y 0 no actualizados.
Necesito descargar 1018kB de archivos.
Se utilizarán 2789kB de espacio de disco adicional después de desempaquetar.
¿Desea continuar [S/n]? s
wget http://www.cacti.net/downloads/cacti-0.8.7c.tar.gz
root@server:/var/www# wget http://www.cacti.net/downloads/cacti-0.8.7c.tar.gz2.- Structuring Cacti
Create a sub-directory to store cacti system
Directories: rra/ and log/ have to be owned by web manager
root@server:/var/www# tar -xzvf cacti-0.8.7c.tar.gz3.- Structuring DataBase
root@server:/var/www# move cacti-0.8.7c noc
root@server:/var/www# chown -R www-data:www-data noc/
root@server:/var/www# cd noc/
Creation of DB and permissions could be done by using Phpmyadmin
root@server:/var/www/noc# mysqladmin -uroot -pRootPasswd create cactidb
Then you have to import cacti.sql (included in cacti downloaded package)
root@server:/var/www/noc# mysql -uroot -pRootPasswd cactidb <>Create a User to manage/access cacti DB
root@server:/var/www/noc# adduser cactiuser
Añadiendo usuario 'cactiuser' ...
Agregando nuevo grupo `cactiuser' (1002) ...
Agregando nuevo usuario `cactiuser' (1002) con grupo `cactiuser' ...
Creando el directorio personal '/home/cactiuser' ...
Copiando archivos desde '/etc/skel' ...
Introduzca la nueva contraseña de UNIX: somepassword
Vuelva a escribir la nueva contraseña de UNIX: somepassword
passwd: contraseña actualizada correctamente
Cambiando la información de usuario para cactiuser
Introduzca el nuevo valor, o presione ENTER para el predeterminado
Nombre completo []: Cacti Manager
Número de habitación []:
Teléfono del trabajo []:
Teléfono de casa []:
Otro []:
¿Es correcta la información? [y/N] y
And now we have to setup permissions in mysql
root@server:/var/www/noc# mysql -uroot -pRootPasswd4.- Setup Cacti config files
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 50
Server version: 5.0.51a-3ubuntu5.4 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT ALL ON cactidb.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
root@server:/var/www/noc#
Edit include/config.php with data
root@server:/var/www/noc# cd include/
root@server:/var/www/noc/include# vim config.php
Edit include/config.php as follow:
$database_type = "mysql";Save and exit: ESC -> :wq
$database_default = "cactidb";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "somepassword";
$database_port = "3306";
5.- Setup CRONTAB
Edit /etc/crontab
root@server:/var/www/noc/include# vim /etc/crontab
Add folowing line (According to my configuration)
*/5 * * * * cactiuser php /var/www/cacti/poller.php > /dev/null 2>&1
6.- Go to Web
Go to:
http://localhost/cacti/
You will be redirected to:
http://localhost/cacti/install/
7.- Finish installation
Information Screen:
Selector Screen:
Dependency verification screen:
Welcome Screen (User/password=admin/admin):
Password setup screen:
Cacti Console:
This comment has been removed by a blog administrator.
ReplyDelete