14
Cacti

Cacti. Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides

Embed Size (px)

Citation preview

Cacti

Cacti

Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.

Why Cacti ?

Nice user interface Easy to install Easy to setup

Prerequisited

Apache2 webserver PHP support MySQL database

Install

#apt-get install cacti

#groupadd cacti

#useradd -g cacti cacti

#cd /var/lib/cacti

#chown -R cacti rra/ log/

Configure MySQL

#mysql -u root If necessary create a password for your mysql root account.

mysql>SET PASSWORD FOR root@localhost = PASSWORD ('your_password_here');

mysql>FLUSH PRIVILEGES;   Create the database :

mysql>CREATE DATABASE cacti;mysql>GRANT ALL ON cacti.* TO cacti_user@localhost IDENTIFIED BY‘ ‘your_password_here’;

mysql>FLUSH PRIVILEGES;quit

Include/config.php

/* make sure these values reflect your actual database/host/user/password */

$database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "your_password"; $database_port = "3306";

Add a crontab

#su – cacti

$crontab -e add this line to your crontab

# m h dom mon dow command*/5 * * * * /usr/bin/php -q /usr/share/cacti/site/poller.php > /dev/null

2>&1

Finish him !

http://localhost/cacti Follow instructions

Prerequisites for adding a host

Make sure to at least have the following : Hostname IP Version set to v2 (remember snmp lesson) The right snmp community

Adding a host to cacti

Finish the host

If this is ok, you can start enabling what you want to monitor. Edit your device and start adding the necessary graph templates or Data Queries.

After this you need to generate the graphs. You can do this by clicking the Url “Create graphs for this host” on

the upper right.