Install Cacti from Ports PDF Print E-mail
Written by Sony Ferbangkara   
Friday, 31 August 2007

sony@server# cd /usr/ports/net/cacti 
sony@server# make install

############################################################################

# See /usr/local/share/examples/rrdtool for some demonstration code        #

############################################################################

===>   Compressing manual pages for rrdtool-1.2.12_1

===>   Running ldconfig

/sbin/ldconfig -m /usr/local/lib

===>   Registering installation for rrdtool-1.2.12_1

===>   Returning to build of cacti-0.8.6h_41

===>   cacti-0.8.6h_41 depends on executable: net-snmp-config - found

===>   cacti-0.8.6h_41 depends on file: /usr/local/include/php/main/php.h - found

===>   cacti-0.8.6h_41 depends on file: /usr/local/lib/php/20050922/mysql.so - found

===>   cacti-0.8.6h_41 depends on file: /usr/local/lib/php/20050922/pcre.so - found

===>   cacti-0.8.6h_41 depends on file: /usr/local/lib/php/20050922/session.so - found

===>   cacti-0.8.6h_41 depends on file: /usr/local/lib/php/20050922/xml.so - found

Added group "cacti".

Added user "cacti".

===>   Generating temporary packing list

===>  Checking if net/cacti already installed

=======================================================================

Cacti is now installed. If you intall it for the first time,

you may have to follow this steps to make it work correctly:

 

1. Create the MySQL database:

# mysqladmin --user=root create cacti

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:

# mysql cacti < /usr/local/share/cacti/cacti.sql

4. Edit /usr/local/share/cacti/include/db-settings.php.

5. Add a line to your /etc/crontab file similar to:

*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1

6. Add alias in apache config for the cacti dir:

Alias /cacti "/usr/local/share/cacti/"

7. Open a cacti login page in your web browser and login with admin/admin.

 

If you update cacti, open a login page right now. An updating process

will run automatically.

=======================================================================

===>   Registering installation for cacti-0.8.6h_41

server#

Last Updated ( Saturday, 11 April 2009 )
 
< Prev   Next >