Archive

Posts Tagged ‘monitoring using cacti’

Install & Configure Cacti

July 4th, 2009 Dhaval Thakar 2 comments

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.