Cacti Server

Installing and configuring Cacti Server Step by Step:

Cacti is an open source web based network monitoring tool front-end for the data logging tool called RRDtool. It’s allow users to check the services at an interval of time and resulting in the graph format.

SO First of all Install following Packages or Install LAMP Server

 Install apache, php and mysql

# yum install httpd httpd-devel

# yum install mysql mysql-server

# yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli

Install SNMP and rrd-tool.

# yum install php-snmp

# yum install net-snmp-utils net-snmp-libs

# yum install rrdtool

 Configuring SNMP

# mv /etc/snmp/snmpd.conf

# touch /etc/snmp/snmpd.conf

com2sec local     localhost           public

group MyRWGroup v1         local

group MyRWGroup v2c       local

group MyRWGroup usm       local

view all   included .1                               80

access MyRWGroup “”     any       noauth   exact all   all   none

syslocation srvroom , linux monitor

syscontact krizna (

and save

# chkconfig –level 235 snmpd on

# service snmpd start

Now Configure MySQl Database:

 # mysqladmin -u root password YOUR-PASSWORD-HERE

# mysql -u root -p.

mysql> create database Jitendra_bauddha;

mysql> show databases;

mysql> GRANT ALL ON Jitendra_bauddha.* TO jitendra@localhost IDENTIFIED BY ‘somepassword’;

mysql> flush privileges;

mysql> exit;

Now Install Cacti Server :

## RHEL/CentOS 6 64-Bit ##

# wget

# rpm -ivh epel-release-6-8.noarch.rpm

# yum install cacti

# rpm -ql cacti | grep cacti.sql

Now Configure Cacti Server :

# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql

# vi /etc/cacti/db.php

$database_default = “cactidb”;

$database_hostname = “localhost”;

$database_username = “usercacti”;

$database_password = “passwordcacti”;


Open /etc/httpd/conf.d/cacti.conf file and comment all “Deny from all” lines.

# vi /etc/httpd/conf.d/cacti.conf

# service httpd restart

Now Configure IP tables for cacti :

# iptables -A INPUT -p udp -m state –state NEW –dport 80 -j ACCEPT

# iptables -A INPUT -p tcp -m state –state NEW –dport 80 -j ACCEPT

# service iptables save

# systemctl restart httpd.service

#*/5 * * * *   cacti   /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

Leave a Reply

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

You are commenting using your 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