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)

Command Line Interface

Though Cacti's frontend is web-based, you can still do some task like rebuild poller cache, add new devices, add graphs, and so on, from the console. Here, I am showing you some basic syntax to maintain Cacti from command line. If you are not an advanced user, just skip this section. To see all the available command line PHP scripts, open the terminal and give this command:

$ ls /path/to/cacti/cli

You will get some PHP scripts. Some of them are described below:

  1. 1. add_device.php: This script is to add a device.

  2. 2. add_graphs.php: This script is to add graphs.

  3. 3. add_perms.php: This script is to add permissions to tree items.

  4. 4. add_tree.php: This script is to add objects to a tree.

  5. 5. copy_user.php: This is a Cacti user copy utility. It is highly recommended that you use the web interface to copy users as this script will only copy local Cacti users.

  6. 6. poller_graphs_reapply_names.php: This script is to rename a existing graph.

  7. 7. poller_reindex_hosts.php: This...