2006-01-05 23:10:06 +01:00
|
|
|
=======================================================================
|
2005-06-21 15:26:54 +02:00
|
|
|
Cacti is now installed. If you intall it for the first time,
|
2006-01-05 23:10:06 +01:00
|
|
|
you may have to follow this steps to make it work correctly:
|
2003-12-21 18:01:41 +01:00
|
|
|
|
2006-01-05 23:10:06 +01:00
|
|
|
1. Create the MySQL database:
|
2003-12-21 18:01:41 +01:00
|
|
|
# mysqladmin --user=root create cacti
|
2006-01-05 23:10:06 +01:00
|
|
|
2. Create a mysql user/password for cacti:
|
|
|
|
(change user and/or password if requered)
|
|
|
|
# echo "GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; FLUSH PRIVILEGES;" | mysql
|
|
|
|
3. Import the default cacti database:
|
2003-12-21 18:01:41 +01:00
|
|
|
# mysql cacti < %%PREFIX%%/%%CACTIDIR%%/cacti.sql
|
2006-01-05 23:10:06 +01:00
|
|
|
4. Edit %%PREFIX%%/%%CACTIDIR%%/include/db-settings.php.
|
|
|
|
5. Add a line to your /etc/crontab file similar to:
|
2004-10-18 01:47:28 +02:00
|
|
|
*/5 * * * * %%CACTIUSER%% %%LOCALBASE%%/bin/php %%PREFIX%%/%%CACTIDIR%%/poller.php > /dev/null 2>&1
|
2006-01-05 23:10:06 +01:00
|
|
|
6. Add alias in apache config for the cacti dir:
|
2005-04-21 09:02:05 +02:00
|
|
|
Alias /cacti "%%PREFIX%%/%%CACTIDIR%%/"
|
2006-01-05 23:10:06 +01:00
|
|
|
7. Open a cacti login page in your web browser and login with admin/admin.
|
2003-12-21 18:01:41 +01:00
|
|
|
|
2006-01-05 23:10:06 +01:00
|
|
|
If you update cacti, open a login page right now. An updating process
|
|
|
|
will run automatically.
|
|
|
|
=======================================================================
|