These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (http://creativecommons.org/licenses/by-nc/3.0/)

Slides:



Advertisements
Similar presentations
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Advertisements

10 Years of Cacti and the Evolution of Plugins
SYSTEM ADMINISTRATION Chapter 19
Calendar Browser is a groupware used for booking all kinds of resources within an organization. Calendar Browser is installed on a file server and in a.
Cacti Workshop Tony Roman Agenda What is Cacti? The Origins of Cacti Large Installation Considerations Automation The Current.
Chapter 15 Chapter 15: Network Monitoring and Tuning.
2008 Mérida, Venezuela Papeete, Tahiti Network and Server Statistics using Cacti PacNOG5 17 June 2009 Hervey Allen.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
 Contents 1.Introduction about operating system. 2. What is 32 bit and 64 bit operating system. 3. File systems. 4. Minimum requirement for Windows 7.
Bangkok, Thailand Smokeping & Cacti intERLab at AIT Workshop March – Bangkok, Thailand Hervey Allen.
Open Source Network Monitoring Tools Yasir Iqbal 22-May-2010.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
WebReport/400 TCP/IP Configuration Presented by Kisco Information Systems.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
PacNOG 6: Nadi, Fiji Installing Ubuntu Server 9.04 Hervey Allen Network Startup Resource Center.
Step 1 - Start your PC and place your Windows XP CD in your CD/DVD- ROM drive. Your PC should automatically detect the CD and you will get a message saying.
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
By Jeerarat Boonyanit. As you can see I have chosen Cpanel for my server management tool. cPanel is a Linux based web hosting control panel that provides.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Hosted Exchange The purpose of this Startup Guide is to familiarize you with ExchangeDefender's Exchange and SharePoint Hosting. ExchangeDefender.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
This presentation will guide you though the initial stages of installation, through to producing your first report Click your mouse to advance the presentation.
1 Network Statistic and Monitoring System Wayne State University Division of Computing and Information Technology Information Technology.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Troubleshooting Your Network Networking for Home and Small Businesses.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
1 Kaseya Advanced Workshop Developed by Kaseya University Powered by IT Scholars Kaseya Version 6.2 Last updated on June 25, 2012 DAY TWO.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
An Introduction to IBM Systems Director
Creating a Web Site to Gather Data and Conduct Research.
Hsu Chun-Hung Network Benchmarking Lab
Network Management Tool Amy Auburger. 2 Product Overview Made by Ipswitch Affordable alternative to expensive & complicated Network Management Systems.
Taipei, Taiwan Smokeping & Cacti APRICOT 2008 Workshop February – Taipei, Taiwan Hervey Allen.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
6 th Annual Focus Users’ Conference Manage Integrations Presented by: Mike Morris.
Network and Server Statistics using Cacti. Introduction A tool to monitor, store and present network and system/server statistics Designed around RRDTool.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
2008 Mérida, Venezuela 2010 Kuala Lumpur, Malaysia Network and Server Statistics using Cacti APRICOT 2010 Kuala Lumpur, Malaysia.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
New Delhi, India Smokeping/Cacti/Munin SANOG 10 Workshop August 29-Sep 2 – New Delhi, India Hervey Allen.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
APRICOT 2010 Kuala Lumpur, Malaysia
2010 These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
The Diagnostic Pathfinder System Introduction Getting Started.
2008 Mérida, Venezuela 6 Nadi, Fiji Network and Server Statistics using Cacti PacNOG 6 November 2009 Hervey Allen Carlos Vicente.
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
MRTG / RRDTool Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
SMOOTHWALL FIREWALL By Nitheish Kumarr. INTRODUCTION  Smooth wall Express is a Linux based firewall produced by the Smooth wall Open Source Project Team.
Introduction to System Administration. System Administration  System Administration  Duties of System Administrator  Types of Administrators/Users.
CACI Proprietary Information | Date 1 PD² v4.2 Increment 2 SR13 and FPDS Engine v3.5 Database Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
2008 Mérida, Venezuela 2009 Manila, Philippines Network and Server Statistics using Cacti APRICOT February 2009 Hervey Allen.
'08 Rabat Smokeping & Cacti Network Monitoring & Management Tutorial June 1, 2008 – AfNOG 2008 Hervey Allen.
CSCF Cacti Project
Network and Server Statistics Using Cacti
Essentials of UrbanCode Deploy v6.1 QQ147
Smokeping/Cacti/Munin
Network and Server Statistics using Cacti AfNOG May Hervey Allen
Ticketing Systems with RT
Presentation transcript:

These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license ( Network and Server Statistics Using Cacti Network Management & Monitoring

Network Monitoring Tools  Availability  Reliability  Performance Cacti monitors the performance and usage of devices. Introduction

A tool to monitor, store and present network and system/server statistics Designed around RRDTool with a special emphasis on the graphical interface Almost all of Cacti's functionality can be configured via the Web. You can find Cacti here: Introduction

Cacti: Uses RRDtool, PHP and stores data in MySQL. It supports the use of SNMP and graphics with MRTG. “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.” Introduction

1.Cacti is written as a group of PHP scripts. 2.The key script is “poller.php”, which runs every 5 minutes (by default). It resides in /usr/share/cacti/site. 3.To work poller.php needs to be in /etc/cron.d/cacti like this: MAILTO=root */5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log 1.Cacti uses RRDtool to create graphs for each device and data that is collected about that device. You can adjust all of this from within the Cacti web interface. 2.The RRD data is stored in a MySQL database along with descriptions of each device that is monitored. 3.The RRD files are located in /var/lib/cacti/rra. General Description

You can measure Availability, Load, Errors and more all with history. –Cacti con view your router and switch interfaces and their traffic, including all error traffic as well. –Cacti can measure drive capacity, CPU load (network h/w and servers) and much more. It can react to conditions and send notifications based on specified ranges. Graphics –Allows you to use all the functionality of rrdgraph to define graphics and automate how they are displayed. –Allows you to organize information in hierarchical tree structures. Data Sources –Permits you to utilize all the functions of rrdcreate and rrdupdate including defining several sources of information for each RRD file. Advantages

Data Collection –Supports SNMP including the use of php-snmp or net-snmp –Data sources can be updated via SNMP or by defining scripts to capture required data. –An optional component, cactid, implements SNMP routines in C with multi-threading. Critical for very large installations. Templates –You can create templates to reutilize graphics definitions, data and device sources Cacti Plugin Architecture –Extends Cacti functionality. Many, many plugins are available. User Management –You can manage users locally or via LDAP and you can assign granular levels of authorization by user or groups of users. Advantages cont.

Configuration of Interfaces is Tedious –The first time you add an interfaces, add graphics for each interface and place these graphics correctly on a hierarchical menu requires considerable time and effort. –It’s very important that you keep your Cacti configuration up-to-date with your network. You must either assign someone to do this, or create appropriate scripts and data shares for this purpose. –If you make a configuration error it can be tedious to correct it. Configuration of Plugin Architecture is non-trivial –Plugin Architecture (PA) versions are released based on specific Cacti versions. –Installing the PA with packaged Cacti versions can be hard. –Upgrading Cacti if you have installed the PA can be hard. For continuous use or large installations it is likely that you will be using scripts and tools to automate the configuration of Cacti. Disadvantages

–Available in RPM form and packages for Gentoo, Red Hat, Fedora, SuSE, FreeBSD, etc. –It is necessary to install cactid separately if you wish to use this for larger installations. This is the cacti-spine package in Ubuntu. –In Ubuntu/Debian… (we’d do this on our local machines:) # apt-get install cacti Installation: Ubuntu Server 10.04

Use the workshop password for your sysadm user Installation: 2 We may have already done this for you. If so, you can use these slides for informational purposes. Skip to the Cacti Web installation steps to continue…

Again, use the workshop password Installation: 3

Informational message. Is not normally an issue. Installation: 4

We are using Apache2. Be sure this is chosen, then highlight and press to continue. Installation: 5

Choose. If you choose you will have to manually configure your database at a later time. Installation: 6

Use our workshop password. Do no use a different password. You can break later exercises. Installation: 7

Again, use the workshop password. Installation: 8

Finally, one last time, use the workshop password. Installation: 9

Now use a web browser and open the following address: You will see the following... Cacti: Installation - Web

Press “Next >>” Cacti: Installation - Web

Choose “New Install” and press “Next >>” again. Cacti: Installation - Web

Your screen should look like this. If it does not ask your instructor for help. Press “Finish” Note! Be sure that “RRDTool 1.3.x” (or higher) is chosen and not “1.0.x”. Cacti: Installation - Web

First time login use: User Name:admin Password:admin Cacti: First Time Login

Now you must change the admin password. Please use the workshop password. Cacti: Change Default Password

Management -> Devices -> Add Specify device attributes –Choose a device template and this will ask you for additional information about the device. –You can add additional templates when, or if, you want. –We’ll add an entry for our gateway router, gw.ws.nsrc.org* Adding a Device *Actual device name may be different.

Add Devices: 2

Choose SNMP version 2 for this workshop. For “Downed Device Detection” we recommend either using Ping and SNMP, or just Ping. At your own location you can use SNMP version 3 if your devices support this. SNMP access is a security issue: -Version 2 is not encrypted -Watch out for globally readable “public” communities -Be careful about who can access r/w communities. -Replace “xxxxxxx” with your local public r/o string Add Devices: 3

Add Devices: 5 For a router you may see a lot of potential network interfaces that are detected by SNMP. Your decision is to create graphs for all of these are not. Generally the answer is, “Yes” – Why?

Chose the “Create graphs for this host” Under Graph Templates generally check the top box that chooses all the available graphs to be displayed. Press Create. You can change the default colors, but the predefined definitions generally work well. Create Graphics

Create Graphics: 2

Create Graphics: 3

Create Graphics: 4 You’ll see this screen later when you are creating graphics for hosts vs. routers

Place the new device in its proper location in your tree hierarchy. Building your display hierarchy is your decision. It might make sense to try drawing this out on paper first. –Under Management  Graph Trees select the Default Tree hierarchy (or, create one of your own). View the Graphics

First, press “Add” if you want a new graphing tree: Second, name your tree, choose the sorting order (the author likes Natural Sorting and press “create”: Graphics Tree

Third, add devices to your new tree: Once you click “Add” you can add “Headers” (separators), graphs or hosts. Now we'll add Hosts to our newly created graph tree: Graphics Tree

Our graphics tree just after the first two devices were added. So far, no graphics are displayed – the first graphics can take up to 5 minutes to display. Cacti graphs are stored on disk and updated using RRDTool via the poller.php script, which, by default, is run every five minutes using cron. Graphics Tree with 2 Devices

Initial Graphs

Over time you’ll see tendencies

Next Steps You can extend cacti by installing the Cacti Plugin Architecture: There are a number of popular Cacti plugins, such as: -Settings -thold -PHP Weathermap -Syslog-NG A good place to start is and Google. To send to RT from Cacti via rt-mailgate you can use the Cacti “settings” plugin:

Cacti is very flexible due to its use of templates. Once you understand the concepts behind RRDTool, then how Cacti works should be (more or less) intuitive. The visualization hierarchy of devices helps to organize and discover new devices quickly. It is not easy to do a rediscover of devices. To add lots of devices requires lots of time and effort. Software such as Netdot, Netdisco, IPPlan, TIPP can help – as well as local scripts that update the Cacti back- end MySQL database directly. Conclusions

Your Mission... – Create device entries in Cacti for every router – Create device entries in Cacti for each server – Create device entries for any additional network equipment in the classroom. Use SNMP for all items. – Create graphs for each item. – Place PCs, Routers, Switches in a tree hierarchy of your design. This is tedious and you may wish to only create entries for a subset of items in the classroom. Use the Network Diagram on the class wiki as a reference. Exercises

Cacti Web Site: Cacti Discussion Group: References