Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Cacti 0.8 Beginner's Guide
Cacti 0.8 Beginner's Guide

Cacti 0.8 Beginner's Guide: Learn Cacti and design a robust Network Operations Center

Arrow left icon
Profile Icon Thomas Urban
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (8 Ratings)
Paperback Mar 2011 348 pages 1st Edition
eBook
$9.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Thomas Urban
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3 (8 Ratings)
Paperback Mar 2011 348 pages 1st Edition
eBook
$9.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Cacti 0.8 Beginner's Guide

Chapter 2. Using Graphs to Monitor Networks and Devices

After having installed and configured Cacti, you will now be able to add your first devices and graphs to the system. This chapter will show you how to add new devices and how to add some performance measurement graphs to them. You will also learn how to group devices using the Cacti tree.

This chapter is going to cover the following topics:

  • Introduction to graph creation with RRDtool

  • Adding devices to Cacti

  • Adding graphs to a device

  • Assigning host templates to a device

  • Adding a device to the Cacti tree

So let's get started…

An introduction to Cacti graphs and the RRDtool


You can learn more about how RRDtool stores data in Appendix C. Now, you'll be looking into the actual graph creation process and what features Cacti supports.

Creating graphs with the RRDtool

Cacti uses the RRDtool to store the polled data. In addition to just storing the data, the RRDtool is also used to create the actual performance graphs.

If you now expect to see a fully-featured charting application, you will be disappointed. The RRDtool graph functionality offers only a very limited range of chart types. They can either be line charts, area charts, or a combination of both. There is no 3D option available, nor are there any other types of charts such as Pie or Scatter charts. This may be a disadvantage for some at first, but concentrating on only a few basic chart types makes it a fast specialized rendering engine for these. Being fast in displaying the raw RRD data is the main focus of the RRDtool graphing engine.

There are several graphing...

Adding devices to Cacti


A device in Cacti can be anything which can be monitored remotely or locally. This can include storage devices, Windows or UNIX servers, and of course network devices. For Cacti to be able to monitor a device, it needs to be reachable by ping or SNMP, but the actual data retrieval can also be done using scripts and commands, or a set of SNMP queries.

Creating a device

Creating a device in Cacti can be achieved by using the Cacti web interface. You are going to add your first device here. While looking at the different steps it takes to add a device, you are not going too much into the details of every field, as most of the user interface is self-explanatory and provides a detailed description of each field.

Tip

Before you start: Create a naming standard

If you have not already done so, you should now think about a naming standard for your devices. Creating and keeping to a naming standard is the first step to automation. Later in this book you will go through some...

Time for action – creating a new device in Cacti


  1. Login as an admin user to your new Cacti installation.

  2. Click on the Devices link under the Management menu. This will open a table with all devices added so far. For a new installation there should only be the localhost device showing its status as Up.

  3. On the top right of the new page click on Add. This is the default position for this Add link.

  4. You will now be presented with the Devices [new] screen. Have a look at this screen and make yourself comfortable with the different fields.

  5. Enter a Description and Hostname (or IP address).

  6. If you add an SNMP-enabled device, select SNMP as the Downed Device Detection method. Otherwise select Ping. When selecting Ping you can choose the protocol type and port to use.

  7. Enter the SNMP community and select the correct version (some additional fields will show up when you choose SNMP Version 3). If the device is not SNMP compatible, you can select Not used.

  8. You can also add some notes. Click on the Create button...

Time for action – adding a host template to the device


  1. Go back to the device overview page by clicking on the Devices link under the Management menu.

  2. Click on the device (the description) you have just created.

  3. In the Host Template drop-down box, select a template that fits your device best.

  4. Click on the Save button.

  5. Note the additional entries in the Associated Graph Templates and Associated Data Queries fields.

What just happened?

By selecting a host template for the device, you have added a predefined package of graph templates and data queries to the host. This is a convenient way of reducing the administrative tasks of adding these manually through the provided drop-down lists. You will come back to templates later in the book, so you do not have to fully understand these right now.

Adding graphs to the device

Cacti displays performance data as graphs, therefore we are now going to add some basic graphs to the device which we have just added. The first graph which you are going to add...

Time for action – adding graphs to the device


  1. Go back to the device overview page by clicking on the Devices link under the Management menu.

  2. Click on the device you have just created.

  3. In the Associated Graph Templates section select the Unix - Ping Latency from the drop-down list and click on the Add button.

  4. Click on the Save button at the bottom of the page.

  5. Go to the top of the page and click on, Create Graphs for this Host .

  6. Select Create: Unix - Ping Latency.

  7. Click on the Create button.

  8. A new screen will appear, where you can choose a legend color and text, but for now, just click on Create.

  9. You will be redirected back to the graphs selection screen with the entry we selected being greyed out.

What just happened?

You just added your first graph to a Cacti device by adding a graph template to the device and selecting it during the graph creation screen. Cacti will now start to poll the data for this graph and generate the associated RRD file for it.

Tip

The Unix templates

Except for...

Time for action – adding interface graphs to a device


  1. Go back to the device overview page by clicking on the Devices link under the Management menu.

  2. Click on the device you have just created or create any other SNMP capable device having network interfaces.

  3. Configure the device to use SNMP and click on the Save or Create button.

  4. Make sure that the following information appears at the top of the page. This will show that the device is SNMP capable.

  5. In the Associated Data Queries section select the SNMP – Interface Statistics from the drop-down list and click on the Add button. If it is already there, then skip this step.

  6. Click on the Save button at the bottom of the page.

  7. Go to the top of the page and click on Create Graphs for this Host.

  8. On the new page which appears, select the interfaces you want to monitor and select a Graph type from the drop-down list.

  9. Click on the Create button.

What just happened?

You added the SNMP – Interface data query to the device and selected some interfaces from...

Adding devices to the Cacti tree


The Cacti tree lists sub-trees, hosts, and graphs in a tree-like interface. It is the main user interface for the Graphs tab. There can be more than one tree which allows for a granular definition of the tree structure.

Note

Before creating the Cacti tree, think about a good structure for it. Changing the tree later is going to involve quite some manual work, so it is better to have this set up correctly beforehand, so it is better to have this set up correctly beforehand.

Creating a tree

Cacti already has a default tree defined which holds the localhost. You are going to leave this default tree empty and create your very own tree.

Time for action – creating a Cacti tree


  1. Click on Graph Trees under the Management menu.

  2. You will see the Default Tree. Click on the Add link to the top right of that table.

  3. Enter a name, for example, Customer A.

  4. Click on the Create button.

What just happened?

You created a new Cacti Tree called Customer A which you can now use to add all Customer A-specific entries. Using separate trees for customers or business units will enable you to better allow or deny access to these for specific users. You are going to see the interaction between a tree and the users later in the book.

Sub-tree items

A sub-tree item enables the creation of sub-entries to the Cacti tree. These can be entries such as "Country", "Site", or a "Business Unit". Creating sub-tree items allows end users to easily find their devices on the Cacti Tree.

Time for action – adding a sub-tree


  1. Click on Add at the top right of the Tree Items table.

  2. Select Header as the Tree Item Type.

  3. Enter Country A as the title.

  4. Click on the Create button.

  5. Click on the (Add) link next to the new Country A entry.

  6. Keep the Parent Item to Country A and the Tree Item Type to Header.

  7. Enter Site A as the title.

  8. Click on the Create button.

What just happened?

You created your first site for Customer A. You can now use this tree to fit all countries, sites, and buildings into a nice manageable tree structure. Your end users will immediately recognize the structure and will be able to quickly find the necessary information.

Adding a device to the tree

Now that you have created a tree and its sub-tree items, you can move on and add a device to the tree.

Time for action – adding a device to the Cacti tree


  1. Click on the (Add) link next to the Site A entry.

  2. Select Host as Tree Item Type.

  3. From the Host drop-down list, select the host which you created earlier. There should also be a Localhost listed. This is the Cacti server.

  4. Leave all the others to their defaults.

  5. Click on the Create button.

What just happened?

You just added your first device to your newly created Cacti tree. You can also add single graphs to the tree by changing the Tree Item type.

Before we continue


You now have a basic knowledge of the RRDtool graph functionality and have also added your first device to Cacti.

Pop quiz – a few questions about Chapter 2

  1. If you want to add an additional threshold line, what do you need to add?

    a. A LINE2 item

    b. A THRESHOLD item

    c. An HRULE item

  2. What information will be displayed when you create an SNMP-enabled device?

    a. The hardware configuration of the device

    b. A message of the day

    c. The contact information and hostname of the device

  3. Where do you add the "Cisco - CPU Usage" graph?

    a. At the Cacti tree

    b. At the RRDtool command prompt

    c. At the Device screen

Summary


In this chapter you have learned quite a bit about the RRDtool graph generation features.

Specifically you have covered the following:

  • Creating some basic graphs using the RRDtool

  • Adding advanced features such as threshold line and color changes based on the threshold

  • Adding a device to Cacti

  • Assigning graphs and interface graphs to a device

  • Creating a new Cacti tree containing sub-tree items and devices

You now have a running Cacti server, which is capable of polling and graphing at least one device.

In the next chapter, you are going to learn more on creating and using graph and device templates.

Left arrow icon Right arrow icon

Key benefits

  • A complete Cacti book that focuses on the basics as well as the advanced concepts you need to know for implementing a Network Operations Center
  • A step-by-step Beginner's Guide with detailed instructions on how to create and implement custom plugins
  • Real-world examples, which you can explore and make modifications to as you go
  • Written by Thomas Urban – creator of the "Network Management Inventory Database" plugins for Cacti

Description

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 0.8 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 like 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. 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.

Who is this book 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.

What you will learn

  • Set up Cacti on Linux and Windows systems
  • Extend the core functionality by using the plugin architecture
  • Build your own custom plugins
  • Create your own custom data input method to retrieve data from your systems
  • Use SNMP, SSH, and WMI to retrieve remote performance data
  • Design and create enterprise-class reports with the reporting plugins
  • Implement threshold-based alerting using the Thold plugin
  • Automate common administrative tasks utilizing the command-line interface and the autom8 plugin
  • Enable mobile access to your Cacti installation for your end users

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 16, 2011
Length: 348 pages
Edition : 1st
Language : English
ISBN-13 : 9781849513920
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Mar 16, 2011
Length: 348 pages
Edition : 1st
Language : English
ISBN-13 : 9781849513920
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 169.97
Cacti 0.8 Beginner's Guide
$48.99
Advanced Penetration Testing for Highly-Secured Environments: The Ultimate Security Guide
$65.99
Nagios Core Administration Cookbook
$54.99
Total $ 169.97 Stars icon
Banner background image

Table of Contents

12 Chapters
Installing Cacti Chevron down icon Chevron up icon
Using Graphs to Monitor Networks and Devices Chevron down icon Chevron up icon
Creating and Using Templates Chevron down icon Chevron up icon
User Management Chevron down icon Chevron up icon
Data Management Chevron down icon Chevron up icon
Cacti Maintenance Chevron down icon Chevron up icon
Network and Server Monitoring Chevron down icon Chevron up icon
Plugin Architecture Chevron down icon Chevron up icon
Plugins Chevron down icon Chevron up icon
Threshold Monitoring with Thold Chevron down icon Chevron up icon
Enterprise Reporting Chevron down icon Chevron up icon
Cacti Automation for NOC Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(8 Ratings)
5 star 37.5%
4 star 50%
3 star 12.5%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Robert Willman Apr 18, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is an excellent Cacti guide and probably the best tech book I have ever read. It's a quick and easy read. I read the whole thing in a weekend. Very clear and to the point instructions that also gives a brief how and why into the Cacti architecture without droning on and on. If you are thinking about deploying Cacti buy this book. Cacti is great but the documentation is not the best. This book will save you a lot of time and headache. The only thing I can think to add would be some additional chapters about plugins. This book does cover some of them but there are a lot of other great plugins which are really the strength of Cacti that aren't documented well where I think this author could really do them justice.
Amazon Verified review Amazon
Gideon Boakye Ansah Feb 18, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book for beginners
Amazon Verified review Amazon
Clay S. Feb 21, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A required book for anyone doing Cacti
Amazon Verified review Amazon
M. Pedraza Apr 05, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
It's still a work in progress, to many projects to get this really configured & taking of the way I would like. But it's a good book for the cacti beginner, like me!
Amazon Verified review Amazon
Jens Albrecht Jun 13, 2013
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Wie der Name schon sagt es ist in Beginner's Guid.Aber ein sehr guter. Er hilft vor allem bei den ersten schritten sehr weiter und sollte zur Standardlektüre eines Cacti Einsteigers gehören.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.