You are previewing Nagios: Building Enterprise-Grade Monitoring Infrastructures for Systems and Networks, Second Edition.
O'Reilly logo
Nagios: Building Enterprise-Grade Monitoring Infrastructures for Systems and Networks, Second Edition

Book Description

The Fully Updated Guide to Enterprise Network Monitoring with Today’s Nagios Platform and Tools

This is the definitive guide to building cost-effective, enterprise-strength monitoring infrastructures with the latest commercial and open source versions of Nagios. World-renowned monitoring expert David Josephsen covers the entire monitoring software stack, treating Nagios as a specification language and foundation for building well designed monitoring systems that can scale to serve any organization.

Drawing on his unsurpassed experience, Josephsen demonstrates best practices throughout and also reveals common mistakes, their consequences, and how to avoid them. He provides all the technical depth you need to configure and run Nagios successfully, including a practical and thorough discussion of writing your own custom modules with the C-based Nagios Event-Broker API.

Extensively updated throughout, this edition adds an entirely new chapter on scaling Nagios for large, complex networks that rely heavily on virtualization and cloud services. Josephsen thoroughly introduces Nagios XI, the advanced new commercial version of Nagios and shows how to improve productivity with the latest third-party tools and plug-ins.

Coverage includes:

  • Learn how Nagios works, in depth

  • Master focused, efficient techniques for configuring and deploying the latest versions of Nagios

  • Solve real-world problems in monitoring Windows and UNIX systems, networking hardware, and environmental sensors

  • Systematically scale and optimize Nagios for the largest enterprise environments

  • Enhance your monitoring system with new tools including Check-MK, Op5 Merlin, and SFlow

  • Integrate visualization via Ganglia, Graphite, and RRDTool

  • Simplify and streamline all facets of system monitoring with Nagios XI

  • Build powerful custom Nagios Event Broker (NEB) modules, step-by-step

  • Learn about easy-to-understand code listings, fully updated for today’s platforms

No matter how complex your systems monitoring challenges are, this book will help you achieve the results you want—right from the start.

Table of Contents

  1. Title Page
  2. Copyright Page
  3. Dedication Page
  4. Contents
  5. Foreword
  6. Acknowledgments
  7. About the Author
  8. About the Technical Reviewers
    1. Mark Bainter
    2. Mike Guthrie
    3. Mathias Kettner
  9. Introduction
    1. Do It Right the First Time
    2. Why Nagios?
    3. What’s in This Book?
    4. Who Should Read This Book?
  10. Chapter 1. Best Practices
    1. A Procedural Approach to Systems Monitoring
    2. Processing and Overhead
    3. Network Location and Dependencies
    4. Security
    5. Silence Is Golden
    6. Watching Ports Versus Watching Applications
    7. Who’s Watching the Watchers?
  11. Chapter 2. Theory of Operations
    1. The Host and Service Paradigm
    2. Plug-ins
    3. Scheduling
    4. Notification
    5. I/O Interfaces Summarized
  12. Chapter 3. Installing Nagios
    1. OS Support and the FHS
    2. Installation Steps and Prerequisites
    3. Installing Nagios
    4. Installing the Plug-ins
    5. Installing NRPE
  13. Chapter 4. Configuring Nagios
    1. Objects and Definitions
    2. nagios.cfg
    3. The CGI Config
    4. Templates
    5. Timeperiods
    6. Commands
    7. Contacts
    8. Contactgroup
    9. Hosts
    10. Services
    11. Hostgroups
    12. Servicegroups
    13. Escalations
    14. Dependencies
    15. Extended Information
    16. Apache Configuration
    17. GO!
  14. Chapter 5. Bootstrapping the Nagios Config Files
    1. Scripting Templates
    2. Autodiscovery
    3. NagiosQL
  15. Chapter 6. Watching: Monitoring Through the Nagios Plug-ins
    1. Local Queries
    2. Watching Windows
    3. Watching UNIX
    4. Check_MK
    5. Watching “Other Stuff”
  16. Chapter 7. Scaling Nagios
    1. Tuning, Optimization, and Some Building Blocks
    2. Distributed Passive Checks with Secondary Nagios Daemons
    3. Event Broker Modules: DNX, Merlin, and Mod Gearman
    4. Distributed Dashboards: Fusion, MNTOS, and MK-Multisite
  17. Chapter 8. Visualization
    1. Nagios Performance Data
    2. RRDTool: The Foundation
    3. Data Visualization Strategies: A Tale of Three Networks
    4. DIY Dashboards
  18. Chapter 9. Nagios XI
    1. What Is It?
    2. How Does It Work?
    3. What’s in It for Me?
    4. How Do I Get My Hands on It?
  19. Chapter 10. The Nagios Event Broker Interface
    1. Function References and Callbacks in C
    2. The NEB Architecture
    3. Implementing a Filesystem Interface Using NEB
    4. DNX, a Real-World Example
    5. Wrap Up
  20. Index