Cacti Monitoring system on FreeBSD 6.2

Lars Sommer, lasg@lasg.dk, 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:

  1. Create the MySQL database:
    mysqladmin –user=root create cacti -p
  2. Create a mysql user/password for cacti:
    echo “GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’; \
    FLUSH PRIVILEGES;” | mysql -u root -p
  3. Import the default cacti database:
    mysql -u root -p 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. Be sure apache gives an access to the directory (‘Allow from’ keywords).

    Allow from localhost 127.0.0.1
  8. 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.

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *