Cacti Guide
- This is a relatively simple installation guide to install Cacti onto an Ubuntu 5.10 server.
- This guide is tested on Cacti 0.8.6f-2 and Ubuntu 5.10 server.
- NOTE - optional packages include: cron-apt & ntp-simple. These may be left out of the installation, but I recommend them.
- The "system time" is important for Cacti to provide reliable data...please use some sort of NTP package.
- Commands shown in a black box must be executed in the Putty terminal window.
- Text shown in the dashed boxes must be entered into the file mentioned in the instructions.
- "Copy" is accomplished by a left-click on the mouse and dragging to highlight text.
- "Paste" is accomplished by a right-click on the mouse. Pasted items appear below the cursor postion.
Install Ubuntu 5.10 using "server" mode and chose appropriate settings to reflect your network requirements during the installation.
This guide assumes a static IP address and the hostname is 'monitor'.
Once the installation of Ubuntu is finished, login as the user created during the install.
Allow remote access via SSH:
sudo apt-get install openssh-server
From a remote workstation use Putty to open an SSH connection to the Ubuntu server. Use a full-screen shell to aviod any line-wrap problems. Login as the user created during the install and issue the following commands to update the sources.list file:
- Remove the comment mark # in the following lines to read as shown below:
- Save the file
Update the system with new packages:
- If necessary reboot the system to take advantage of any new kernel release: shutdown -r now
Install some optional packages:
- Answer the Postfix configuration screens as shown:
Install the Apache2 and MySQL packages:
Install the Cacti package:
- Answer the Cacti configuration screens as shown:
Setup the MySQL privileges:
Create the cacti database:
Grant privileges on the cacti database to the cacti user:
Import the cacti database:
Finally add a password for the MySQL root user:
Restart Apache2:
Open a browser to: http://ip-address/cacti
sudo nano /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu breezy universe deb-src http://us.archive.ubuntu.com/ubuntu breezy universe deb http://security.ubuntu.com/ubuntu breezy-security universe deb-src http://security.ubuntu.com/ubuntu breezy-security universe
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install ntp-simple cron-apt
Mail Delivery: local only Mail Server Name: monitor
sudo apt-get install apache2 mysql-server
sudo apt-get install cacti
Database Name: cacti Database Username: cacti Password: cacti Webserver: Apache2
mysql_install_db
mysqladmin --user=root create cacti
mysql -u root -e "grant all privileges on cacti.* to cacti@localhost identified by 'cacti'; flush privileges;"
zcat /usr/share/doc/cacti/cacti.sql.gz | mysql -u cacti --password=cacti cacti
mysqladmin -u root password (some-password)
sudo apache2ctl restart
At this point, you might want to restart the machine to ensure everything is working correctly. Links:
Cacti: