Home > Linux, Monitoring > Install & Configure Cacti

Install & Configure Cacti

cacti

cacti-sample

Installation

Download Cacti from http://www.cacti.net/

Extract cacti source package

tar zxvf cacti-0.8.7e.tar.gz

Move Cacti to html folder

mv cacti-0.8.7e /var/www/html/cacti

cd /var/www/html/cacti

create database

mysqladmin –user=root create cacti
mysql cacti < cacti.sql

mysql –user=root mysql
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactipasswd’;

Enter following line in crontab to gather data

*/5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1

Update your db user & passwd in /var/www/html/include/config.php

Now you can follow web based cacti installation using following link

http://serverip/cacti/install/

on third page make sure PATH for all required packages are correct.

Using http://serverip/cacti/ you can start cacti
Default username & passwd is admin

Configuration

To monitor new host.
Click on New Graphs (from left panel)
Click on Create New Hosts
Enter Description, Hostname / IP address
Choose appropreate template.
Select ping type & snmp version

To create graph, click on Create Graphs for this Host

To change default SNMP Community
Click on Settings, modify SNMP Version & SNMP Community

To modify host templates
Click on Host Templates. Select desired template, modify & save. Now onwards during creation of New Device, you need not required to change template settings.

Graph Trees
Once you add all devices & start monitoring, you might need organized structure to view graphs.
At the left panel, there is option for Graph Trees, here you can create group of devices e.g Cisco, Linux, Windows, DB..

Create new Graph Tree & add device.
Click on Graph Trees–> Add –> Enter name & select sorting type –>Save.
To add device, Select appropriate Graph Tree –> Add –> Select host in Tree Item Type.

  • Stumbleupon
  • Delicious
Google Buzz
Share and Enjoy:
  • Digg
  • Twitter
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Yahoo! Buzz
  • Reddit
  • BlinkList
  • del.icio.us
  • DZone
  • email
  • IndianPad
  • LinkedIn
  • Live
  • Print
  • Technorati
  1. July 27th, 2009 at 20:17 | #1

    Can i just copy and paste this one by one ?

    is it okay ?

    I am very new

    Thanks
    Mr.K~

  2. dhaval thakar
    July 29th, 2009 at 14:44 | #2

    Sure you can.
    If you wish you can provide SOURCE link at the bottom of your post.

  1. July 4th, 2009 at 15:26 | #1
  2. July 4th, 2009 at 23:00 | #2
  3. December 11th, 2009 at 23:34 | #3