PacktLib: Cacti 0.8 Beginner's Guide

Cacti 0.8Beginner's Guide

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Installing Cacti

Preparing the system—basic prerequisites

Installing Cacti on a CentOS 5 system

Time for action – installing the missing packages

Time for action – downloading Cacti

Time for action – creating the database

Time for action – configuring Cacti

Time for action – creating the poller's cron entry and Cacti's system account

Time for action – installing Spine

Installing Cacti on a Windows system

Time for action – starting the Windows setup

Upgrading Cacti

Time for action – upgrading Cacti

Using Cacti for the first time

Time for action – configuring Cacti

The Cacti web interface explained

Before we continue

Summary

Using Graphs to Monitor Networks and Devices

An introduction to Cacti graphs and the RRDtool

Adding devices to Cacti

Time for action – creating a new device in Cacti

Time for action – adding a host template to the device

Time for action – adding graphs to the device

Time for action – adding interface graphs to a device

Adding devices to the Cacti tree

Time for action – creating a Cacti tree

Time for action – adding a sub-tree

Time for action – adding a device to the Cacti tree

Before we continue

Summary

Creating and Using Templates

An introduction to templates

Defining a data template

Time for action – defining a data template

Defining a graph template

Time for action – defining a CDEF in Cacti

Time for action – defining the graph template

Time for action – defining a graph template

Time for action – adding the color areas

Time for action – adding a legend

Defining a host template

Time for action – defining a host template

Importing/exporting templates

Time for action – importing a template

Time for action – exporting a template

The template repository

Before we continue

Summary

User Management

An introduction to Cacti user management

Creating a user

Time for action – creating the first Cacti user

General user settings

Realm and graph permissions

Time for action – setting realm permissions

Time for action – setting graph permissions

The template user

Time for action – installing the missing packages

Time for action – the Batch Copy

Integrate LDAP/Active Directory authentication

Time for action – setting up Active Directory authentication

Managing users with the Cacti CLI

Time for action – importing users from the CLI

Before we continue

Summary

Data Management

An introduction to Cacti data management

Creating data input methods

Time for action – creating a data input method – Step 1

Time for action – creating a data input method – Step 2

Creating data queries

Time for action – creating a data query – Step 1

Time for action – creating a data query – Step 2

Create a remote SSH data input method

Time for action – create SSH keys with PuTTY Key Generator

Time for action – creating the data input method

Before we continue

Summary

Cacti Maintenance

An introduction to Cacti maintenance

The Cacti directory structure

Backup and restore procedures

Time for action – backup your Cacti database

Time for action – backup your Cacti files

Time for action – enhancing the backup script

Time for action – creating a cronjob

Time for action – restoring the Cacti database

Time for action – restoring all Cacti files

Time for action – restoring the Cacti config.php file

Log file management

Time for action – configuring Logrotate

Cacti maintenance

Time for action – finding orphaned RRD files

A short overview of the Cacti CLI functionality

Summary

Network and Server Monitoring

An introduction to network and server monitoring

Monitoring a network device

Time for action – set up SNMP on Cisco devices

Time for action – adding a Cisco switch to Cacti

Time for action – set up SNMP access on Cisco PIX

Time for action – adding a Cisco PIX Firewall to Cacti

Monitoring VMware ESX servers

Time for action – set up SNMP access on an ESXi 4 server

Time for action – set up SNMP access on an ESX 3.5 server

Time for action – adding a VMware ESX host to Cacti

Windows monitoring

Time for action – enabling the SNMP server feature

Time for action – configuring the Windows SNMP service

Time for action – setting up a Windows WMI user

Time for action – installing the CactiWMI add-on – Part 1

Time for action – installing the CactiWMI add-on – Part 2

Time for action – performance measurement with CactiWMI

Summary

Plugin Architecture

Introduction to the Plugin Architecture

Installing the Plugin Architecture

Time for action – installing the Plugin Architecture

Upgrading the Plugin Architecture

Time for action – upgrading the Plugin Architecture

Configuring the Plugin Architecture

Time for action – configuring the Plugin Architecture

Downloading and installing plugins

Time for action – installing the settings plugin

Time for action – removing the settings plugin

Updating a plugin

Adding plugin permissions

Summary

Plugins

Plugin design

Commonly used plugins

Time for action – adding an external page to Cacti

Creating a new plugin

Time for action – adding the realm permission functions

Time for action – adding additional fields to the host table

Time for action – retrieve data from the database

Time for action – presenting data on the tree view page

Time for action – deleting data

Time for action – sorting and retrieving data

The data presentation section

Time for action – presenting the data

Time for action – retrieving data from the form post

Time for action – creating a new database item

Time for action – updating an existing item

Summary

Threshold Monitoring with Thold

Threshold monitoring

Installing Thold

Time for action – installing Thold

Configuring Thold

Using Thold

Time for action – give permission to a user

Time for action – creating your first threshold – Part 1

Time for action – creating your first threshold – Part 2

Time for action – installing the stress tool

Time for action – viewing breached thresholds

Time for action – creating your first threshold template

Time for action – assigning a threshold template

Summary

Enterprise Reporting

Overview of Nectar and CereusReporting

Nectar

Time for action – installing Nectar

Time for action – create your first Nectar report

Time for action – adding report items

CereusReporting

Time for action – installing CereusReporting

Time for action – configure CereusReporting

Time for action – creating an on-demand report

Time for action – creating a pre-defined report

Time for action – scheduling a pre-defined report

Time for action – Backup and Restore a pre-defined report

Report scheduling and polling performance

Time for action – setup of a cron-based report generation

Advanced reporting features of CereusReporting

Summary

Cacti Automation for NOC

Overview of Cacti automation

Using the Cacti CLI

Time for action – adding permissions to a user

Time for action – adding a Cacti tree

Time for action – adding a single device to Cacti

Autom8 – true Cacti automation

Time for action – installing the Autom8 plugin

Time for action – patching the Cacti files

Time for action – adding a new Tree Rule

Time for action – applying an Autom8 rule to devices

Time for action – adding a Graph Rule

Summary

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Mobile Access / Administration

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Online Resources

Further Information

Further Information

Further Information

Further Information

Further Information

Pop Quiz Answers

Index