Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4



Similar documents
Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Network and Server Statistics using Cacti

Cacti complete network graphing solution. Oz Melamed E&M Computing Jun 2009

Using Cacti To Graph MySQL s Metrics

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates.

Installing Platform RTM. Platform RTM Version Release date: October 2011

Installing Booked scheduler on CentOS 6.5

System and Network Monitoring With Zabbix

OS Installation: CentOS 5.8

Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

OnCommand Performance Manager 1.1

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

Enterprise Manager. Version 6.2. Installation Guide

JAMF Software Server Installation Guide for Linux. Version 8.6

LAMP Quickstart for Red Hat Enterprise Linux 4

Rancid Server Build and Operation Overview (v0.3) (This is being done from memory so expect some errors)

Active Fabric Manager (AFM) Installation Guide 2.0

Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

Network and Server Statistics Using Cacti

SOA Software API Gateway Appliance 7.1.x Administration Guide

How To Install Amyshelf On Windows 2000 Or Later

Dell SupportAssist Version 2.0 for Dell OpenManage Essentials Quick Start Guide

Parallels Plesk Panel

Cacti The ULTIMATE Management Solution

Installation Instructions

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on Oracle WebLogic Server

Easy Setup Guide 1&1 CLOUD SERVER. Creating Backups. for Linux

IIS, FTP Server and Windows

Parallels Plesk Automation

Ulteo Open Virtual Desktop Installation

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Installation Guidelines (MySQL database & Archivists Toolkit client)

Server Installation/Upgrade Guide

Network and Server Statistics Using Cacti

The SkySQL Administration Console

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Cloud Homework instructions for AWS default instance (Red Hat based)

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Desktop : Ubuntu Desktop, Ubuntu Desktop Server : RedHat EL 5, RedHat EL 6, Ubuntu Server, Ubuntu Server, CentOS 5, CentOS 6

How to Install SMTPSwith Mailer on Centos Server/VPS

Tibbr Installation Addendum for Amazon Web Services

IBM. IBM Cloud Automated Modular Managed (AMM) - monitoring services User Guide

Using Internet or Windows Explorer to Upload Your Site

Asia Web Services Ltd. (vpshosting.com.hk)

Citrix XenServer 5.6 OpenSource Xen 2.6 on RHEL 5 OpenSource Xen 3.2 on Debian 5.0(Lenny)

Application Discovery Manager User s Guide vcenter Application Discovery Manager 6.2.1

Getting Started with RES Automation Manager Agent for Linux

Installation documentation for Ulteo Open Virtual Desktop

The Cacti Manual. Ian Berry Tony Roman Larry Adams

QuickStart Guide for Managing Computers. Version 9.2

Livezilla How to Install on Shared Hosting By: Jon Manning

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

Plexxi Control Installation Guide Release 2.1.0

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Integrating SAP BusinessObjects with Hadoop. Using a multi-node Hadoop Cluster

EZcast Installation guide

Advanced Server Monitoring Setup Guide

Security Correlation Server Quick Installation Guide

Setting Up Specify to use a Shared Workstation as a Database Server

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Migrating LAMP stack from x86 to Power using the Server Consolidation Tool

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Hands-on Lab Exercise Guide

Nagios XI Monitoring Windows Using WMI

Using Microsoft Expression Web to Upload Your Site

Zenoss Service Dynamics Resource Management Installation and Upgrade

Crystal Reports Installation Guide

Biznet GIO Cloud Connecting VM via Windows Remote Desktop

Project management integrated into Outlook

Configuring and Monitoring HP EVA StorageWorks Array

CloudPortal Business Manager 2.2 POC Cookbook

Contents. 1. Infrastructure

CYCLOPE let s talk productivity

ULTEO OPEN VIRTUAL DESKTOP UBUNTU (PRECISE PANGOLIN) SUPPORT

Zenoss Core Installation and Upgrade

ESET SHARED LOCAL CACHE

Specops Command. Installation Guide

Parallels Plesk Control Panel

Fermilab Central Web Service Site Owner User Manual. DocDB: CS-doc-5372

Railo Installation on CentOS Linux 6 Best Practices

Moving to Plesk Automation 11.5

How to install PowerChute Network Shutdown on VMware ESXi 3.5, 4.0 and 4.1

Linux Squid Proxy Server

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

Volume SYSLOG JUNCTION. User s Guide. User s Guide

NeuralStar Installation Guide

NetIQ Sentinel Quick Start Guide

Quick Start Guide For Ipswitch Failover v9.0

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

LifeSize Transit Virtual Appliance Installation Guide June 2011

Providing an Effective Intranet Knowledge Base Using Linux and Open Source Software

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

There are numerous ways to access monitors:

JAMF Software Server Installation Guide for Windows. Version 8.6

Installing and Using the Zimbra Reporting Tool

Transcription:

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4 by SK Cacti is an open source, front-end for the data logging tool called RRDtool. It is a web based network monitoring and graphing tool. For more information about Cacti refer the official link. Install required packages Install the following required packages for Cacti. Cacti and some of the below prerequisites are not included in the CentOS official repository. So let us install them from EPEL repository. To install EPEL repository enter the following commands. [root@server ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm [root@server ~]# rpm -ivh epel-release-6-8.noarch.rpm Install Apache Apache is used to display the the network graphs created by PHP and RRDtool. [root@server ~]# yum install httpd httpd-devel -y Install MySQL MySQL is used to store the Cacti Database details. [root@server ~]# yum install mysql mysql-server -y Install PHP PHP script is used to create graphs using RRDtool. [root@server ~]# yum install php-mysql php-pear php-common php-gd php-devel php ph p-mbstring php-cli php-mysql -y Install PHP-SNMP

It is an extension for SNMP to access data. [root@server ~]# yum install php-snmp -y Install NET-SNMP It is used to manage network. [root@server ~]# yum install net-snmp-utils net-snmp-libs php-pear-net-smtp -y Install RRDtool It is a database tool to manage and retrieve data s like Network Bandwidth and CPU Load etc. [root@server ~]# yum install rrdtool -y After installing all the above softwares, start them. [root@server ~]# /etc/init.d/httpd start [root@server ~]# /etc/init.d/mysqld start [root@server ~]# /etc/init.d/snmpd start Let the above services to start automatically on every reboot. [root@server ~]# chkconfig httpd on [root@server ~]# chkconfig mysqld on [root@server ~]# chkconfig snmpd on Installing Cacti Tool [root@server ~]# 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. [root@server ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7

Server version: 5.1.69 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 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 Bye Now import Cacti Tables to Cacti Database. Find the location of the file cacti.sql and import it to cacti database. To find out this file, enter the following command. [root@server ~]# rpm -ql cacti grep cacti.sql /usr/share/doc/cacti-0.8.8a/cacti.sql Note down the path of cacti.sql file and import it using the following command. [root@server ~]# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8a/cacti.sql Enter password: Now the tables are imported into cacti database. Open the /etc/cacti/db.php and make the following changes.

[root@server ~]# vi /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; /* Configure Apache server Open the file /etc/httpd/conf.d/cacti.conf and add your network range or you can add a single ip. In this case, i add my local network ip range 192.168.1.0/24. [root@server ~]# vi /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.1.0/24 </IfModule> </Directory> Restart your apache server finally.

[root@server ~]# /etc/init.d/httpd restart If you wanna to start the installer from a remote machine, you should allow the apache default port 80 through your iptables. [root@server ~]# vi /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT -A INPUT -p udp -m state --state NEW --dport 53 -j ACCEPT -A INPUT -p tcp -m state --state NEW --dport 53 -j ACCEPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT Restart iptables. [root@server ~]# /etc/init.d/iptables restart Configure Cron for Cacti Open the file /etc/cron.d/cacti and uncomment the following line. [root@server ~]# vi /etc/cron.d/cacti */5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1 The above cron job runs the poller.php script every five minutes and collects the data of the known hosts by Cacti.

Run Cacti installer Navigate to your web browser using the URL http://ip-address/cacti. The following screen should appear, Click Next. Select New install from the drop down box and click Next. In the next screen make sure that all the values are valid and click Finish.

Now the installation is completed and it will ask the cacti username and password to login to admin console. Thedefault username and password of Cacti is admin. It will ask you to change the admin password now. Enter the new password and click Save.

Now you will get the main console window of Cacti. Create Graphs Click New Graphs on the left pane of console screen. Select the Host or create a new one and Select SNMP Generic OID Template in Graph Templates section and click Create.

After creating the graphs, you can preview them using graphs tab on the menu bar. Here are some of my localhost Cacti screen-shots. Localhost Memory Usage Graph

Localhost Disk space Graph Localhost Load Average Graph

Localhost Logged in users Graph Localhost Processes Graph