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 now! 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
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

Creating a new plugin


Now it is time for you to create your very first plugin. You will go through the different steps, from the concept of the plugin to its installation within Cacti.

The plugin will be quite simple, but will show you most of the common features and hooks of the plugin architecture.

File structure

All plugins should at least consist of index.php, INFO, and setup.php files. These files are the minimum requirement for any plugin to work properly, but of course you should also consider adding a README file as further documentation to your plugin. You can find some sample plugins, such as the maint plugin, on the following GitHub page:

https://github.com/Cacti/plugin_maint

Concept and design

Let's assume that you want to display additional data such as a table at the end of each host graph. The data that is being displayed has the following requirements:

  • Display the hostname and IP address
  • Show serial and warranty Information
  • Display a contact address (email)
  • Free text/HTML can be added...
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 $19.99/month. Cancel anytime