Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cacti Beginner's Guide

You're reading from   Cacti Beginner's Guide Leverage Cacti to design a robust network operations center

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher
ISBN-13 9781788299183
Length 420 pages
Edition 2nd Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Thomas Urban Thomas Urban
Author Profile Icon Thomas Urban
Thomas Urban
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Installing Cacti FREE CHAPTER 2. Using Graphs to Monitor Networks and Devices 3. Creating and Using Templates 4. User Management 5. Data Management 6. Cacti Maintenance 7. Network and Server Monitoring 8. Plugin Architecture 9. Plugins 10. Threshold Monitoring with Thold 11. Enterprise Reporting 12. Cacti Automation for NOC 13. Migrating Cacti to a New Server 14. Multiple Poller with Cacti 15. Online Resources 16. Further Information 17. Pop Quiz Answers

Defining a graph template


Remember the Have a go hero challenge from Chapter 2, Using Graphs to Monitor Networks and Devices? The graph did show a yellow area reaching a defined threshold and a red one once the threshold was breached. Now you're going to define the same type of graph template for a Running Processes graph template.

CDEF definition

As a prerequisite, you're first going to create your two CDEFs, one for the green area and one for the yellow area. The threshold is set at 435 for the yellow and 470 for the red threshold, but you can change this to fit your needs. Let's have a look at the two CDEFs you're going to create shortly:

CDEF:isGreen=intspeed,0,434,LIMIT 
CDEF:isYellow=intspeed,435,470,LIMIT 

Cacti does not use named variables such as intspeed, but defines them according to the alphabet from a to z, so your definition from a Cacti view actually looks like:

CDEF:cdefa=a,0,434,LIMIT 
CDEF:cdefb=a,435,470,LIMIT 

isGreen and isYellow also have been changed. Don't worry, Cacti...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime