You are previewing Learning Nagios 3.0.
O'Reilly logo
Learning Nagios 3.0

Book Description

A comprehensive configuration guide to monitor and maintain your network and systems

  • Secure and monitor your network system with open-source Nagios version 3

  • Set up, configure, and manage the latest version of Nagios

  • In-depth coverage for both beginners and advanced users

In Detail

Nagios is a tool for system and network monitoring. It constantly checks other machines and various services on those machines. The main purpose of system monitoring is to detect and report any system not working properly as soon as possible—so that you are aware of problems before a user runs into them. It is a modular and flexible solution that uses plug-ins to do its job.

The book is an introduction to Nagios that will teach readers to use Nagios with its advanced features. At the same time, readers who have already used earlier versions of Nagios will also benefit because they will learn about the new and advanced features of Nagios 3.

Table of Contents

  1. Learning Nagios 3.0
  2. Credits
  3. About the Author
  4. About the Reviewer
  5. Preface
    1. What This Book Covers
    2. What You Need for This Book
    3. Who is This Book For
    4. Conventions
    5. Reader Feedback
    6. Customer Support
      1. Downloading the Example Code for the Book
      2. Errata
      3. Piracy
      4. Questions
  6. 1. Introduction
    1. Introduction to Nagios
    2. Benefits of Monitoring Resources
    3. Main Features
    4. Soft and Hard States
    5. What's New in Nagios 3.0?
    6. Summary
  7. 2. Installation and Configuration
    1. Installation
      1. Upgrading from Previous Versions
      2. Prerequisites
      3. Obtaining Nagios
      4. Setting up Users and Groups
      5. Nagios Compilation
      6. Registering Nagios as a System Service
    2. Nagios Configuration
      1. Main Configuration File
      2. Macro Definitions
      3. Configuring Hosts
      4. Configuring Services
      5. Configuring Commands
      6. Configuring Time Periods
      7. Configuring Contacts
      8. Templates and Object Inheritance
      9. Introduction to Notifications
    3. Summary
  8. 3. Using the Nagios Web Interface
    1. Setting up the Web Interface
      1. Configuring the Web Server
      2. Accessing the Web Interface
      3. Troubleshooting
    2. Using the Web Interface
      1. Tactical Overview
      2. Status map
    3. Managing Hosts
      1. Status
      2. Host Information
    4. Managing Services
      1. Status
      2. Service Information
    5. Managing Downtimes
      1. Downtimes Status
      2. Scheduling Downtimes
    6. Managing Comments
    7. Nagios Information
      1. Process Information
      2. Performance Information
    8. Reports
    9. Summary
  9. 4. Overview of Nagios Plugins
    1. Standard Network Plugins
      1. Checking If a Host is Alive
      2. Testing Connectivity over TCP and UDP
    2. Monitoring Email Servers
      1. POP3 and IMAP Checks
      2. SMTP Daemon Testing
    3. Monitoring Network Services
      1. FTP Server
      2. DHCP Tests
      3. Verifying the Nagios Daemon
      4. Testing Web Sites
    4. Monitoring Database Systems
      1. MySQL
      2. PostgreSQL
      3. Oracle
      4. Other Databases
    5. Storage Space
      1. Virtual Memory Monitoring
      2. Monitoring IDE/SCSI SMART
      3. Checking Disk Space
      4. Testing Free Space for Remote Shares
    6. Resource Monitoring
      1. System Load
      2. Checking Processes
      3. Monitoring Logged-in Users
    7. Miscellaneous Plugins
      1. APT Updates Checking
      2. UPS Status Checking
      3. LM Sensors
      4. Dummy Check Plugin
      5. Manipulating Other Plugins' Output
    8. Summary
  10. 5. Advanced Configuration
    1. Maintainable Configurations
    2. Configuration File Structure
    3. Defining Dependencies
    4. Using Templates
    5. Custom Variables
    6. Flapping
    7. Summary
  11. 6. Notifications and Events
    1. Effective Notifications
    2. Escalations
    3. External Commands
    4. Event Handlers
    5. Modifying Notifications
    6. Adaptive Monitoring
    7. Summary
  12. 7. Passive Checks and NSCA
    1. What are Passive Checks?
    2. Configuring Passive Checks
    3. Passive Checks — Hosts
    4. Passive Checks — Services
    5. Troubleshooting Passive Checks
    6. What is NSCA?
    7. Obtaining NSCA
    8. Compiling NSCA
    9. Configuring the NSCA Server
    10. Sending results over NSCA
    11. Security Concerns
    12. Summary
  13. 8. Monitoring Remote Hosts
    1. Monitoring over SSH
    2. Configuring SSH
    3. Using the check_by_ssh Plugin
    4. Performing Multiple Checks
    5. Troubleshooting SSH-Based Checks
    6. Introduction to NRPE
    7. Obtaining NRPE
    8. Compiling NRPE
    9. Configuring the NRPE Daemon
    10. Installing NRPE as a System Service
    11. Configuring Nagios for NRPE
    12. NRPE and Command Arguments
    13. Other Approaches
    14. Troubleshooting NRPE
    15. Summary
  14. 9. SNMP
    1. Introduction to SNMP
    2. Data Objects
    3. Working with SNMP and MIB
    4. Graphical Tools
    5. Setting up an SNMP Agent
    6. Using SNMP from Nagios
    7. Receiving Traps
    8. Additional Plugins
    9. Summary
  15. 10. Advanced Monitoring
    1. Monitoring Windows Hosts
    2. NSClient++
    3. Performing Tests via check_nt
    4. Performing Checks with NRPE Protocol
    5. Passive Checks using NSCA Protocol
    6. Distributed Monitoring
    7. Obsessive Notifications
    8. Configuring Nagios Instances
    9. Freshness Checking
    10. Summary
  16. 11. Extending Nagios
    1. Introduction
    2. Active Checks
    3. Writing Plugins the Right Way
    4. Checking Websites
    5. Monitoring VMware
    6. Your Own Notifications
    7. Managing Nagios
    8. Using Passive Checks
    9. Summary