Book Image

Cacti Beginner's Guide - Second Edition

Book Image

Cacti Beginner's Guide - Second Edition

Overview of this book

Cacti is a performance measurement tool that provides easy methods and functions for gathering and graphing system data. You can use Cacti to develop a robust event management system that can alert on just about anything you would like it to. But to do that, you need to gain a solid understanding of the basics of Cacti, its plugin architecture, and automation concepts. Cacti Beginner's Guide will introduce you to the wide variety of features of Cacti and will guide you on how to use them for maximum effectiveness. Advanced topics such as the plugin architecture and Cacti automation using the command-line interface will help you build a professional performance measurement system. Designed as a beginner's guide, the book starts off with the basics of installing and using Cacti, and also covers the advanced topics that will show you how to customize and extend the core Cacti functionalities. The book offers essential tutorials for creating advanced graphs and using plugins to create enterprise-class reports to show your customers and colleagues. From data templates to input methods and plugin installation to creating your own customized plugins, this book provides you with a rich selection of step-by-step instructions to reach your goals. It covers all you need to know to implement professional performance measurement techniques with Cacti and ways to fully customize Cacti to fit your needs. You will also learn how to migrate Cacti to new servers. Lastly you will also be introduced to the latest feature of building a scalable remote poller environment. By the end of the book, you will be able to implement and extend Cacti to monitor, display, and report the performance of your network exactly the way you want.
Table of Contents (24 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
15
Online Resources

Preface

Cacti is a performance measurement tool that provides easy methods and functions for gathering and graphing system data. You can use Cacti to develop a robust event management system that can alert on just about anything you would like it to. But to do this, you need to gain a solid understanding of the basics of Cacti, its plugin architecture, and automation concepts.

Cacti Beginner's Guide will introduce you to the wide variety of features of Cacti and will guide you on how to use them for maximum effectiveness. This book is designed in such a way that you can explore it chapter by chapter or skip any chapter without missing a beat. If you are a network operator and want to use Cacti for implementing performance measurement for trending, troubleshooting, and reporting purposes, then this book is for you. You only need to know the basics of network management and SNMP.

 What this book covers

Chapter 1, Installing Cacti, acts as a quick installation reference for users new to Cacti.

Chapter 2, Using Graphs to Monitor Networks and Devices, teaches you how to add devices and graphs; then we will see how to display them.

Chapter 3, Creating and Using Templates, explains how to create host and graph templates and how to apply them to the devices.

Chapter 4, User Management, gets us introduced to the Cacti user management and explains the Realm and Graph permission settings. It will also provide information on how to utilize the new user groups functionality for multi-customer environments.

Chapter 5, Data Management, explains how Cacti provides the ability to create own data input methods to query for information.

Chapter 6, Cacti Maintenance, serves as a guide on how to backup and restore the Cacti data as well as provide some information on log file management and data housekeeping.

Chapter 7, Network and Server Monitoring, provides some extended information on how to use Cacti for network and server monitoring. It will provide information that goes above plain SNMP monitoring.

Chapter 8, Plugin Architecture, provides information on the new integrated plugin architecture and how to download and install new plugins.

Chapter 9, Plugins, provides information on the commonly used plugins and also introduces the reader to plugin programming.

Chapter 10, Threshold Monitoring with Thold, provides an introduction to the Cacti threshold plugin, Thold.

Chapter 11, Enterprise Reporting, provides some information on the reporting solutions available for Cacti. It concentrates on the graph reporting solutions, Nectar and CereusReporting.

Chapter 12, Cacti Automation for NOC, introduces the Cacti command line interface to the reader. It will also provide an overview of the integrated automation functionality for automated device/graph management.

Chapter 13, Migrate Cacti to a New Server, introduces various steps to migrate Cacti to a new server and the steps to prepare the required files, before transferring them.

Chapter 14, Multiple Pollers with Cacti, introduces you to remote poller concept that allows administrators to spread the polling of devices to multiple systems.

What you need for this book

You will need the Cacti software with version 1.x, two CPUs with 1 GB of RAM, and 20 GB of hard-drive each with CentOS 7/Windows as an operating system.

Who this book is for

If you are a network operator and want to use Cacti for implementing performance measurement for trending, troubleshooting, and reporting purposes, then this book is for you. You only need to know the basics of network management and SNMP.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows:

An example for such a naming standard would be "_customername_user".

A block of code is set as follows:

// Realm Id can be: 0 - Local, 1 - LDAP, 2 - Web Auth 
if ( ( $realm_id < 0 ) || ( $realm_id > 2  ) ) { 
   // The realm id will be local unless a valid id was given 
   $realm_id = 0; 
} 

Any command-line input or output is written as follows:

cd /var/www/html/cacti/cli

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Select LDAP Authentication from the Authentication Method drop-down box."

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply email [email protected], and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:

  1. Log in or register on our website using your email address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box.
  5. Select the book for which you're looking to download the code files.
  6. Choose from the drop-down menu where you purchased this book from.
  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Cacti-Beginners-Guide-Second-Edition. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/CactiBeginnersGuideSecondEdition_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at [email protected] with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.