Book Image

Cacti 0.8 Network Monitoring

Book Image

Cacti 0.8 Network Monitoring

Overview of this book

Cacti is a network monitoring tool that provides graphic solutions to your everyday monitoring issues. It has a wide variety of features and misusing them can mean that you are not monitoring your network as closely as you think. This book takes you through all of the key features of Cacti and shows how to use them for maximum effectiveness. This book will teach you how to use Cacti effectively to monitor your network through its web interface leaving aside all the heavy chunks of code. You will be introduced to all the features of Cacti in an easy-to-understand format. This book introduces Cacti and goes through its complete installation and setup. After a quick look, it will teach you to use Cacti's amazing graph templating and user management features. You will learn to customize graphs and make them better looking and easier to understand. It will teach you to provide the paths to any external script or command using Cacti. Then it will take you through importing and managing new templates and also customizing them. Creating users and assigning permissions to them is the next step in this book. Towards the end, you will learn to take backups and restore the system.
Table of Contents (13 chapters)

Chapter 7. Data Management

To generate graphs, Cacti needs to collect data. Cacti, by default, comes with some data queries and data input methods, which are enough for small and medium networks, but if you have a large network with 100+ computers, routers, and network devices, writing some data queries and input methods may save you time.

In this chapter, we will learn:

  • How to create data input method.

  • How to create data query.

  • SNMP query XML syntax.

  • Script query XML syntax.

  • Creating graph for single SNMP OID.

In Cacti, data is collected by two methods:

  1. 1. The data input method.

  2. 2. The data query method.

Data input method

In Chapter 4, we learned about the data input method. Here, we'll learn to create data input methods. Data input methods are the basic system that Cacti uses to collect data for generating graphs.

In the above figure, we can see the list of input methods that come with Cacti. For most small networks, you don't need to add or create a custom data input method. For larger networks...