CACTI – Open source Network Monitor and web based Graphing tool for Linux CentOS 6.4

Posted: May 21, 2013 in FX Pipeline, Linux

Cacti_3 cacti_3_lg Cacti Screenshot 38 Cacti_(software)_screenshot

What is Cacti?

Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.

Data Sources
To handle data gathering, you can feed cacti the paths to any external script/command along with any data that the user will need to “fill in”, cacti will then gather this data in a cron-job and populate a MySQL database/the round robin archives.

Data Sources can also be created, which correspond to actual data on the graph. For instance, if a user would want to graph the ping times to a host, you could create a data source utilizing a script that pings a host and returns it’s value in milliseconds. After defining options for RRDTool such as how to store the data you will be able to define any additional information that the data input source requires, such as a host to ping in this case. Once a data source is created, it is automatically maintained at 5 minute intervals.

Graphs
Once one or more data sources are defined, an RRDTool graph can be created using the data. Cacti allows you to create almost any imaginable RRDTool graph using all of the standard RRDTool graph types and consolidation functions. A color selection area and automatic text padding function also aid in the creation of graphs to make the process easier.

Not only can you create RRDTool based graphs in cacti, but there are many ways to display them. Along with a standard “list view” and a “preview mode”, which resembles the RRDTool frontend 14all, there is a “tree view”, which allows you to put graphs onto a hierarchical tree for organizational purposes.

User Management
Due to the many functions of cacti, a user based management tool is built in so you can add users and give them rights to certain areas of cacti. This would allow someone to create some users that can change graph parameters, while others can only view graphs. Each user also maintains their own settings when it comes to viewing graphs.

Templating
Lastly, cacti is able to scale to a large number of data sources and graphs through the use of templates. This allows the creation of a single graph or data source template which defines any graph or data source associated with it. Host templates enable you to define the capabilities of a host so cacti can poll it for information upon the addition of a new host.

to find out more :-  http://www.cacti.net/what_is_cacti.php

 

Installation process of CACTI
yum install httpd httpd-devel -y
yum install mysql mysql-server -y
yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-mysql -y
yum install php-snmp -y
yum install net-snmp-utils net-snmp-libs php-pear-Net-SMTP -y
yum install rrdtool -y
/etc/init.d/httpd start
/etc/init.d/mysqld start
/etc/init.d/snmpd start

chkconfig httpd on
chkconfig mysqld on
chkconfig snmpd on
yum install cacti -y

Configure MySQL
Login to MySQL server as root user and create a database for Cacti. Here i use Cacti database name as cacti, username as cacti and password as centos respectively.

mysql -u root -p
Enter password:
mysql> create database cacti;
Query OK, 1 row affected (0.01 sec)

mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY ‘centos’;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8a/cacti.sql
Enter password: (centos)

gedit /etc/cacti/db.php
/* make sure these values refect your actual database/host/user/password */
$database_type = “mysql”;
$database_default = “cacti”; ## Name of the Cacti Database ##
$database_hostname = “localhost”;
$database_username = “cacti”; ## Username for Cacti database ##
$database_password = “centos”; ## Database password ##
$database_port = “3306”;
$database_ssl = false;

/*

gedit /etc/httpd/conf.d/cacti.conf

Alias /cacti /usr/share/cacti

<Directory /usr/share/cacti/>
<IfModule mod_authz_core.c>
# httpd 2.4
Require host localhost
</IfModule>
<IfModule !mod_authz_core.c>
# httpd 2.2
Order deny,allow
Deny from all
Allow from 192.168.0.103 (this is Local IP Address)
</IfModule>
</Directory>
/etc/init.d/httpd restart
to run CACTI Installer :-
http://ip-address/cacti
In my Case – http://192.168.0.103/cacti

Screenshot

 

 

 

 

 

 

Advertisements
Comments
  1. reddy says:

    hi i configured cacti succesfull by seeing this site but i did not see any graph created in cacti ,can any one help me to configure cacti where i am new to this tool.

  2. Curt says:

    The appearance of cellulitis equine and some have even been effective, but require
    a large time commitment for those dealing with cellulitis equine issues.
    This is your decision, so make sure what you choose is the best way to avoid disappointment.
    It is also known for its role in regulating weight loss.

  3. Johnb425 says:

    Regards for helping out, superb information. egagbdddbbad

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s