Lars Sommer, [email protected], 2007-09-06
Updated to FreeBSD 7.2, 2009-08-26
DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining.
Please note: Cacti do not have memory/free scripts for FreeBSD. You can either
hack in the linux scripts, or look at the Cacti website, at the add-on scripts.
Install these ports:
net-mgmt/cacti
NO NOT THIS: net/cactid
Messages from the ports:
- Create the MySQL database:
mysqladmin –user=root create cacti -p - Create a mysql user/password for cacti:
echo “GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’; \
FLUSH PRIVILEGES;” | mysql -u root -p - Import the default cacti database:
mysql -u root -p cacti < /usr/local/share/cacti/cacti.sql - Edit /usr/local/share/cacti/include/db-settings.php.
- 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 - Add alias in apache config for the cacti dir:
Alias /cacti “/usr/local/share/cacti/” - Be sure apache gives an access to the directory (‘Allow from’ keywords).
Allow from localhost 127.0.0.1 - Open a cacti login page in your web browser and login with
admin/admin or admin/cacti
If you update cacti, open a login page, an updating process
will start automatically.