Cacti The ULTIMATE Management Solution



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

OS Installation Guide Red Hat Linux 9.0

Using Cacti To Graph MySQL s Metrics

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

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

Red Hat Linux 7.2 Installation Guide

Using Red Hat Enterprise Linux with Georgia Tech's RHN Satellite Server Installing Red Hat Enterprise Linux

Deploying IBM Lotus Domino on Red Hat Enterprise Linux 5. Version 1.0

Network and Server Statistics using Cacti

Installing an IBM Workplace/Portal Server on Linux

LAMP Quickstart for Red Hat Enterprise Linux 4

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

Installing Booked scheduler on CentOS 6.5

System and Network Monitoring With Zabbix

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

EZblue BusinessServer The All - In - One Server For Your Home And Business

stub (Private Switch) Solaris 11 Operating Environment In the Solaris 11 Operating Environment, four zones are created namely:

HOWTO: Set up a Vyatta device with ThreatSTOP in router mode

Livezilla How to Install on Shared Hosting By: Jon Manning

Operating System Installation Guidelines

Amahi Instruction Manual

Getting Started in Red Hat Linux An Overview of Red Hat Linux p. 3 Introducing Red Hat Linux p. 4 What Is Linux? p. 5 Linux's Roots in UNIX p.

SETTING UP REMOTE ACCESS ON EYEMAX PC BASED DVR.

BF2CC Daemon Linux Installation Guide

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

HowTo. Planning table online

NATIONAL POPULATION REGISTER (NPR)

AJ Matrix V5. Installation Manual

How to Install SMTPSwith Mailer on Centos Server/VPS

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

Recommended File System Ownership and Privileges

EZblue BusinessServer The All - In - One Server For Your Home And Business

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

SIMIAN systems. Setting up a Sitellite development environment on Mac OS X. Sitellite Content Management System

II. Installing Debian Linux:

HOWTO: Set up a Vyatta device with ThreatSTOP in bridge mode

CPE111 COMPUTER EXPLORATION

CS197U: A Hands on Introduction to Unix

Content Management System

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

2. Boot using the Debian Net Install cd and when prompted to continue type "linux26", this will load the 2.6 kernel

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

Lotus Notes 6.x Client Installation Guide for Windows. Information Technology Services. CSULB

Advantech AE Technical Share Document

OpenPro ERP Software Installation Guide Talbert Ave Suite 200 Fountain Valley, CA USA Phone Fax

Quick Installation Guide. CereusReporting - Express Edition

OpenPro ERP Software Installation Guide REDHAT LINUX

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

Server Installation/Upgrade Guide

Redmine Installation on Debian. v1.1

Installing and Running MOVES on Linux

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

The Tor VM Project. Installing the Build Environment & Building Tor VM. Copyright The Tor Project, Inc. Authors: Martin Peck and Kyle Williams

Using iscsi with BackupAssist. User Guide

SAMBA SERVER (PDC) Samba is comprised of a suite of RPMs that come on the RHEL/Fedora CDs. The files are named:

SETTING UP RASPBERRY PI FOR TOPPY FTP ACCESS. (Draft 5)

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

IIS, FTP Server and Windows

Network Management & Monitoring Request Tracker (RT) Installation and Configuration

How to Configure edgebox as a Web Server

CO Web Server Administration and Security. By: Szymon Machajewski

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Installation Guide for FTMS and Node Manager 1.6.0

Installing OptiRain Open on Macintosh OS X 10.6 (Snow Leopard)

Cable Internet Connection & Sharing using Red Hat 7.2 (Version 1.0, )

Best Practices in Hardening Apache Services under Linux

Web Site Content Management Server. Installation Guide Version 4.1 Build 0

Tutorial Guide to the IS Unix Service

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

What will be supplied with chemoventory package?

USB HSPA Modem. User Manual

The Cacti Manual. Ian Berry Tony Roman Larry Adams

Contents: 1. Preparation/download files 2. Apache HTTPD Web Server MySQL PHP PHPMyAdmin Ruby On Rails 1.8.

The Ten Minute Guide to Setting Up a Linux Web Server

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

Getting Started Guide

Using Virtual Machines

NoMachine (free version) Installation Guide

Pervasive SQL 9 Client/Server Installation and Configuration

Local Caching Servers (LCS): User Manual

CN=Monitor Installation and Configuration v2.0

Test instructions & HW/SW specifications Contents

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

Install Apache on windows 8 Create your own server

Configuring Ubuntu Server as a Firewall and Reverse Proxy for OWA 2007 Configuration Guide

Simple. Control Panel. for your Linux Server. Getting Started Guide. Simple Control Panel // Linux Server

Partek Flow Installation Guide

Omnistar Recruiter Install User Guide (Codelock)

Redhat 6.2 Installation Howto -Basic Proxy and Transparent

A candidate following a programme of learning leading to this unit will be able to:

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

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

F-SECURE MESSAGING SECURITY GATEWAY

CYCLOPE let s talk productivity

Windows Template Creation Guide. How to build your own Windows VM templates for deployment in Cloudturk.

SETTING UP A LAMP SERVER REMOTELY

Transcription:

Cacti The ULTIMATE Management Solution Cacti SNMP Management Installation HOW-TO For Linux Author: Lee Carter Published: October 20 th 2004 Version 2 Updated November 1, 2004

Table of Contents Purpose...3 Requirements...3 How it works...3 Installing Fedora Core 2...3 Package Group Selection...4 Applications...5 Servers...5 Development...6 System...6 Show me the Files...7 Install MySQL...8 Install Apache...9 Install PHP...10 Configure MySQL...11 Install RRDTOOL...11 Install NET-SNMP...12 Install Cacti...13 Finalize Setup...14 Page 2 of 14

Purpose The purpose of this document is to explain how to install Red Hat s Fedora Core 2 product and utilize a suite of applications for network based SNMP management. This document will take you thru step-bystep how-to install Linux on a new system and configure all the necessary tools that will get you a fully functional SNMP management station. SNMP management can be used to monitor just about anything on just about any IP enabled device. Requirements Before you get started make sure you have the following things: Fedora Core 2 CD s 1 thru 3 Active Connection to the Internet Computer that can be formatted and have a new OS installed from scratch About 3-4 hours of time How it works Cacti uses a suite of applications to do visual web front end graphing of results pulled via SNMP. These SNMP values can range from input/output rates on network / server interfaces to the number of macaddresses associated to a given access-point. Using SNMP to manage a network can provide a nontechnical central point of consolidation and health monitoring of your infrastructure. As stated earlier, SNMP is something that is already or can easily be enabled on many IP capable devices. Using SNMP to constantly pull statistical information and graphing that information can be useful in tracking things like disk utilization, network activity and much more. The CACTI application requires several utilities to be configured to work together in order to present the information in a GUI web front end. These utilities include a web server, a database, PHP and RDTOOL. All of which is freely available for the Linux operating system. Installing Fedora Core 2 The following section will explain how to install Fedora Core2. I do not go through updating the packages on your box once it is installed because technically you don't need to do this for a successfully install. however, from a security prospective it is HIGHLY recommended that you update the system using the up2date utility provided within the GNOME GUI. Insert Disk 1 and Boot the System (the system must be configured to boot from CDROM for this to work). This will start the install process that I will take you through below. Screen Name Action Taken Media Test Select Skip and click OK Welcome to Fedora Core Language Selection Default=English Page 3 of 14

Screen Name Action Taken Keyboard Configuration Installation Type Disk Partitioning Setup Automatic Partition Disk Setup Boot Loader Configuation Network Configuration Firewall Configuration Additional Language Support Time Zone Selection Set Root Password Package Group Selection Default=English Check Custom Default=Automatically Partition Check Remove All At Warning Screen Click Yes Set Desired IP settings Default=Enable Firewall Check WWW Check SSH Default=English(USA) Select your Time Zone Set password See Below: Package Group Selection Ok, now it is time to setup the packages that you want to install in your new Fedora Core2 Installation. The packages I have selected will guarantee you a successful installation but you may choose to add / remove any packages that will suite your own environment. Items with a + sign mean you are to add them from the default Items with a sign mean you are to remove them from the default Page 4 of 14

Items without anything mean to leave it alone Desktops X-Windows Applications Servers Gnome Desktop KDE Editors Engineering and Scientific Graphical Internet Text-based Internet Office / Productivity Sound and Video Authoring and publishing Graphics Games and Entertainment CLICK ON DETAILS CLICK ON DETAUKS UN-CHECK UN-CHECK UN-CHECK UN-CHECK -EVOLUTION -GAIM +GFTP -X CHAT -FETCH MAIL +LYNX -MUTT -SLRN Server Configuration Tools Web server Mail server Window File Server DNS name server FTP Server SQL Database Server News Server Network Servers CHECK AND CLICK ON DETAILS CHECK +SYSTEM-CONFIG- BOOT Page 5 of 14

Development System Development Tools Kernel Development X Software Development Gnome Software Development KDE Software Development CHECK CHECK CHECK CHECK Administration Tools System Tools Printing Support CHECK CHECK AND CLICK DETAILS UN-CHECK -CKERMIT +EREAL-GNOME +NMAP-FRONTEND +TSCLIENT -XDELTA When you are ready to go. During the install you will be asked to insert disk 2, and 3 (since disk 1 is already in the PC you won't be asked for that one obviously. On my system (Celeron 733 with 256 RAM It took approximately 15 minutes before it asked for Disk 2 and 20 minutes before it asked for Disk 3. Disk 3 finished in approximately 5 minutes making the entire install time (after the initial setup and package selections) to be around 40 minutes. After it is finished with Disk 3 it will automatically eject the CD and you will need to click REBOOT. Now that Fedora Core 2 is installed on your system you will have to go thorough an initial setup on the first boot. Here you will need to provide information about License agreement, Date/Time, Display settings, User Accounts, Sound Card, Additional CD's and finally Finish setup. Go through these prompts and when you are finished you should be prompted with a gui login. For the rest of this install login as root until you are finished updating and installing software on the system. After that you can login as the user you created to do everything else. Page 6 of 14

Show me the Files You are now ready to begin downloading the files necessary to install and run Cacti. This can be done via the command line (CLI) using a command called wget. Before we start downloading the files we must first create a directory that we want to download the files to. For sake of this how-to that directory will be located under the root file system (/) in a directory called cacti-install. (Remember you should be logged in as root for the duration of this how-to. After all is setup you can login as a normal user and sudo for root privileged commands if you wish). mkdir /cacti-install wget http://apache.mirrors.versehost.com/httpd/httpd-2.0.52.tar.gz wget http://us4.php.net/get/php-4.3.8.tar.gz/from/this/mirror wget http://dev.mysql.com/get/downloads/mysql-4.0/mysql- 4.0.21.tar.gz/from/http://www.signal42.com/mirrors/mysql/ wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.49.tar.gz wget http://unc.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.1.2.tar.gz wget http://www.cacti.net/downloads/cacti-0.8.6b.tar.gz File Download Script Once you have downloaded the files it is HIGHLY recommended to check the directory and make sure all the files are actually downloaded. As noted earlier version numbers change and the location of the files may change so the wget script will fail if that is the case. If they fail during download you must fine a new location Page 7 of 14

Install MySQL tar -zxvf mysql* cd mysql*./configure --prefix=/usr/local/mysql make make install groupadd mysql useradd -g mysql mysql scripts/mysql_install_db chown -R root /usr/local/mysql chown -R mysql /usr/local/mysql/var chgrp -R mysql /usr/local/mysql rm -f /etc/my.cnf cp support-files/my-medium.cnf /etc/my.cnf echo /usr/local/mysql/lib/mysql >> /etc/ld.so.conf echo /usr/local/lib >> /etc/ld.so.conf ldconfig v cp support-files/mysql.server /etc/init.d/mysql /usr/local/mysql/bin/mysqld_safe --user=mysql & Echo cd /etc/rc3.d/ ln -s../init.d/mysql S85mysql ln -s../init.d/mysql K85mysql cd /etc/rc5.d/ ln -s../init.d/mysql S85mysql ln -s../init.d/mysql K85mysql cd /etc/init.d/ chmod 755 mysql MySQL Install Script Page 8 of 14

Install Apache tar -zxvf httpd* cd httpd*./configure --prefix=/www enable-so make make install cd /www/bin cp apachectl /etc/init.d/httpd y cd /etc/rc3.d/ ln -s../init.d/httpd S85httpd ln -s../init.d/httpd K85httpd cd /etc/rc5.d/ ln -s../init.d/httpd S85httpd ln -s../init.d/httpd K85httpd /www/bin/apachectl start Apache Install Script Page 9 of 14

Install PHP tar -zxvf php* cd php*./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-filepath=/www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlibdir=/usr/include with-gd make make install cp php.ini-dist /www/php/php.ini cp /www/conf/httpd.conf /www/conf/httpd.conf.backup echo ####################### >> /www/conf/httpd.conf echo # Added via Lee Carter's Script >> /www/conf/httpd.conf echo ####################### >> /www/conf/httpd.conf echo AddType application/x-tar.tgz >> /www/conf/httpd.conf echo AddType application/x-httpd-php.php >> /www/conf/httpd.conf echo AddType image/x-icon.ico >> /www/conf/httpd.conf echo DirectoryIndex index.php index.html index.html.var >> /www/conf/httpd.conf service httpd stop service httpd start PHP Install Script Page 10 of 14

Configure MySQL group-add cacti useradd -g cacti cactiuser /usr/local/mysql/bin/mysql mysql> set password for root@localhost=password('rootpw'); mysql> create database cactidb; mysql> grant all on cactidb.* to root; mysql> grant all on cactidb.* to root@localhost; mysql> grant all on cactidb.* to cactiuser; mysql> grant all on cactidb.* to cactiuser@localhost; mysql> set password for cactiuser@localhost=password('cactipw'); mysql> exit MySQL Configure Script Install RRDTOOL tar -zxvf rrdtool* cd rrdtool*./configure --prefix=/usr/local/rrdtool make make install RRDTOOL Install Script Page 11 of 14

Install NET-SNMP tar -zxvf net-snmp* cd net-snmp*./configure NET-SNMP Install Script Part 1 At the end of the./configure script you will be required to go thru a set of prompts to setup snmp on your linux box. Below is an avreviated version of what you will see and what I have used as answers to the questions. If ther is nothing after the : then that means I used the default and simply hit enter. Setup Menu: Default Version of SNMP (3): 1 System Contact Information (root@): New Cacti User System Location (Unknown): Data Center Rack 2A1 Location to write logfile (/var/log/snmpd.log): Location to write presistant information (/var/net-snmp): After you are finished with the configure script that runs. You can continue on to compiling and installing net-snmp.. make make install NET-SNMP Install Script Part 2 Page 12 of 14

Install Cacti cp cacti* /www/htdocs/ cd /www/htdocs/ tar -zxvf cacti* mv cacti-0.8.6b cacti/ cd /cacti /usr/local/mysql/bin/mysql --user=root --password=rootpw cactidb < cacti.sql chown -R cactiuser rra/ log/ Cacti Install Script Now edit your /www/htdocs/cacti/include/config.php The finished product should look like so: $database_defaut = cactidb ; $database_hostname = localhost ; $database_username = cactiuser ; $database_password = cactipw ; Now add the following line in your /etc/ctrontab The finished product should look like so: */5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1 NOTE*** DO NOT RUN ABOVE COMMAND. LET CRONTAB FILE RUN IT. If you run the above command as root there will be several files created under.../rra and.../log that will now be owned by the user ROOT and your graphs will NOT populate correctly. So the moral is... JUST TYPE IN WHAT YOU SEE ABOVE AND SAVE FILES. DONT RUN M. Page 13 of 14

Finalize Setup You are now ready to finalize the setup process for cacti. To do this you will need to point your browser to the IP address of the cacti system like so: http://localhost/cacti or http://remoteip/cacti 1. 2. Default (New Install) -> 3. Two errors locating php and rrdtool to Fix them replace what they have with: RRDTOOL = /usr/local/rrdtool/bin/rrdtool PHP = /www/php/bin/php 4. Click Finish 5. Login admin/admin 6. Change Password for user admin 7. Click Save That's it! Your done. Congratulations on your new install. You can now start playing with the cacti utility it's self. I highly recommend going to the message boards to find add-ons and helpful hints when trying to do any advanced things in cacti. This is a highly versatile utility and is really only limited to your imagination. Page 14 of 14