Professional Documents
Culture Documents
MONITORING TOOLS 218
Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators | 4 Free Shell Scripting
eBooks
Cacti tool is an open source web based network monitoring and system monitoring graphing solution for IT
business. Cacti enables a user to poll services at regular intervals to create graphs on resulting data using
RRDtool. Generally, it is used to graph time-series data of metrics such as network bandwidth utilization,
CPU load, running processes, disk space etc.
In this how-to we are going to show you how to install and setup complete network monitoring application
called Cacti using Net-SNMP tool on RHEL 7.x/6.x/5.x, CentOS 7.x/6.x/5.x and Fedora 21-12 systems
using YUM package manager tool.
Apache : A Web server to display network graphs created by PHP and RRDTool.
MySQL : A Database server to store cacti information.
PHP : A script module to create graphs using RRDTool.
PHP-SNMP : A PHP extension for SNMP to access data.
NET-SNMP : A SNMP (Simple Network Management Protocol) is used to manage network.
RRDTool : A database tool to manage and retrieve time series data like CPU load, Network
Bandwidth etc.
Install Apache
Install MySQL
MySQL Installation
MariaDB is a community-developed fork of the MySQL database project, and provides a replacement for
MySQL. Previously the official supported database was MySQl under RHEL/CentOS 6.x/5.x and Fedora.
Recently, RedHat makes a new transaction from MySQl to MariaDB, as MariaDB is the default
implementation of MySQL in RHEL/CentOS 7.x and Fedora 19 onwards..
Install PHP
# yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli
Install PHP-SNMP
SNMP Installation
Install NET-SNMP
Install RRDTool
Install Rrdtool
Sample Output:
Dependencies Resolved
=======================================================================================
=======================================================================================
===============
Package Arch
Version Repository
Size
=======================================================================================
=======================================================================================
===============
Installing:
cacti noarch
0.8.8b-7.el7 epel
2.1 M
Installing for dependencies:
net-snmp-utils x86_64
1:5.7.2-18.el7 base
195 k
rrdtool x86_64
1.4.8-8.el7 base
368 k
Transaction Summary
=======================================================================================
=======================================================================================
===============
Install 1 Package (+2 Dependent packages)
Installed:
cacti.noarch 0:0.8.8b-7.el7
Dependency Installed:
net-snmp-utils.x86_64 1:5.7.2-18.el7
rrdtool.x86_64 0:1.4.8-8.el7
Complete!
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit;
Bye
Sample Output:
/usr/share/doc/cacti-0.8.8b/cacti.sql
Now we’ve of the location of Cacti.sql file, type the following command to install tables, here you need to
type the Cacti user password.
# vi /etc/cacti/db.php
Make the following changes and save the file. Make sure you set password correctly.
[root@tecmint ~]# iptables -A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT
[root@tecmint ~]# iptables -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
[root@tecmint ~]# service iptables save
# vi /etc/httpd/conf.d/cacti.conf
You need to enabled access to Cacti application for your local network or per IP level. For example we've
enabled access to our local LAN network 172.16.16.0/20. In your case, it would be different.
In latest version of Apache (ex: Apache 2.4), you may need to change according to the following settings.
<Directory /usr/share/cacti/>
<IfModule mod_authz_core.c>
# httpd 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# httpd 2.2
Order deny,allow
Deny from all
Allow from all
</IfModule>
</Directory>
# vi /etc/cron.d/cacti
Uncomment the following line. The poller.php script runs every 5mins and collects data of known host
which is used by Cacti application to display graphs.
Make sure all the following values are correct before continuing. Click Finish button.
Once you've entered username and password, it will ask you to enter a new password for cacti.
For more information and usage please visit the Cacti Page.
Tags: cacti
Your name can also be listed here. Got a tip? Submit it here to
become an TecMint author.
Receive Your Free Complimentary eBook NOW! - Self-Service Linux®: Mastering the
Art of Problem DeterminationUnderstanding the Linux® Virtual Memory Manager
NEXT STORY
PREVIOUS STORY
RHCSA Series: How to Manage Users and Groups in RHEL 7 – Part 3
2 30
24 SEP, 2012
4 SEP, 2014
14
5 OCT, 2012
218 RESPONSES
Comments 17 Pingbacks 0
12c:
http://www.tecmint.com/oracle-database-11g-release-2-installation-in-linux/
http://www.tecmint.com/oracle-12c-installation-in-centos-6/
Reply
Thanks!
Reply
« Older Comments
Comment
Name * Email *
Website
Post Comment
Notify me of followup comments via e-mail. You can also subscribe without commenting.
CloudStats.me – Monitors Your Linux Servers and Websites from the Cloud
25 JUL, 2014
Shilpa Nair Shares Her Interview Experience on RedHat Linux Package Management
23 JUN, 2015
Tecmint: Linux Howtos, Tutorials & Guides © 2016. All Rights Reserved.
This work is licensed under a (cc) BY-NC
The material in this site cannot be republished either online or offline, without our permission.