Nagios Core Administration Cookbook - Second Edition

Over 90 hands-on recipes that will employ Nagios Core as the anchor of monitoring on your network
Preview in Mapt

Nagios Core Administration Cookbook - Second Edition

Tom Ryder

1 customer reviews
Over 90 hands-on recipes that will employ Nagios Core as the anchor of monitoring on your network
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $39.99
Save 74%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Nagios Core Administration Cookbook - Second Edition Book Cover
Nagios Core Administration Cookbook - Second Edition
$ 39.99
$ 10.00
Kubernetes Cookbook - Second Edition Book Cover
Kubernetes Cookbook - Second Edition
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $55.98
Add to Cart

Book Details

ISBN 139781785889332
Paperback386 pages

Book Description

Nagios Core is an open source monitoring framework suitable for any network that ensures both internal and customer-facing services are running correctly and manages notification and reporting behavior to diagnose and fix outages promptly. It allows very fine configuration of exactly when, where, what, and how to check network services to meet both the uptime goals of your network and systems team and the needs of your users.

This book shows system and network administrators how to use Nagios Core to its fullest as a monitoring framework for checks on any kind of network services, from the smallest home network to much larger production multi-site services. You will discover that Nagios Core is capable of doing much more than pinging a host or to see whether websites respond.

The recipes in this book will demonstrate how to leverage Nagios Core's advanced configuration, scripting hooks, reports, data retrieval, and extensibility to integrate it with your existing systems, and to make it the rock-solid center of your network monitoring world.

Table of Contents

Chapter 1: Understanding Hosts, Services, and Contacts
Introduction
Creating a new network host
Creating a new HTTP service
Creating a new e-mail contact
Verifying configuration
Creating a new hostgroup
Creating a new servicegroup
Creating a new contactgroup
Creating a new time period
Running a service on all hosts on a group
Chapter 2: Working with Commands and Plugins
Introduction
Finding a plugin
Installing a plugin
Removing a plugin
Creating a new command
Customizing an existing command
Using an alternative check command for hosts
Writing a new plugin from scratch
Implementing threshold checks in a plugin
Using macros as environment variables in a plugin
Chapter 3: Working with Checks and States
Introduction
Specifying how frequently to check a host or service
Changing thresholds for PING RTT and packet loss
Changing thresholds for disk usage
Scheduling downtime for a host or service
Managing brief outages with flapping
Adjusting flapping percentage thresholds for a service
Chapter 4: Configuring Notifications
Introduction
Configuring notification periods
Configuring notifications for groups
Choosing states for notification
Specifying the number of failed checks before notification
Automating contact rotation
Defining an escalation for repeated notifications
Defining a custom notification method
Filtering notifications based on a host or service value
Chapter 5: Monitoring Methods
Introduction
Monitoring PING for any host
Monitoring SSH for any host
Checking an alternative SSH port
Monitoring mail services
Monitoring web services
Checking that a website returns a given string
Monitoring database services
Monitoring the output of an SNMP query
Monitoring a RAID or other hardware device
Creating an SNMP OID for monitoring
Chapter 6: Enabling Remote Execution
Introduction
Monitoring local services on a remote machine with NRPE
Setting the listening address for NRPE
Setting allowed client hosts for NRPE
Creating new NRPE command definitions securely
Giving limited sudo(8) privileges to NRPE
Using check_by_ssh with key authentication instead of NRPE
Using check_mk instead of NRPE
Chapter 7: Using the Web Interface
Introduction
Using the Tactical Overview
Viewing and interpreting availability reports
Viewing and interpreting trends
Viewing and interpreting notification history
Adding comments on hosts or services in the web interface
Viewing configuration in the web interface
Scheduling checks from the web interface
Acknowledging a problem via the web interface
Chapter 8: Managing Network Layout
Introduction
Creating a network host hierarchy
Using the network map
Choosing icons for hosts
Establishing a host dependency
Establishing a service dependency
Monitoring individual nodes in a cluster
Using the network map as an overlay
Chapter 9: Managing Configuration
Introduction
Grouping configuration files in directories
Keeping a configuration under version control
Configuring host roles using groups
Building groups using regular expressions
Using inheritance to simplify configuration
Defining macros in a resource file
Using another object's directives in a host or service check
Using custom directives
Dynamically building host definitions
Chapter 10: Security and Performance
Introduction
Using authentication for the Nagios Core web interface
Using authenticated contacts
Writing debugging information to the Nagios log file
Monitoring Nagios performance with nagiostats
Setting up a redundant monitoring host
Chapter 11: Automating and Extending Nagios Core
Introduction
Allowing and submitting passive checks
Submitting passive checks from a remote host with NSCA
Submitting passive checks in response to SNMP traps
Setting up an event handler script
Tracking host and service states with Nagiosgraph
Reading status in a MySQL database with NDOUtils
Reading status from a Unix socket with MK Livestatus
Writing customized Nagios Core reports
Getting extra visualizations with NagVis
Writing custom Nagios Core management scripts

What You Will Learn

  • Manage the configuration of Nagios Core with advanced techniques to achieve fine detail in your checks
  • Find, install, and even write your own check plugins
  • Filter notifications to send them to the right people or programs at the right time
  • Work around difficult network accessibility issues and delegate checks to other machines
  • Tweak a Nagios Core server to achieve both high performance and redundancy in case of disaster
  • Process the results of checks performed by other machines to monitor backups and similar processes
  • Extend Nagios Core to allow advanced scripting, reporting, and network visualization behavior

Authors

Table of Contents

Chapter 1: Understanding Hosts, Services, and Contacts
Introduction
Creating a new network host
Creating a new HTTP service
Creating a new e-mail contact
Verifying configuration
Creating a new hostgroup
Creating a new servicegroup
Creating a new contactgroup
Creating a new time period
Running a service on all hosts on a group
Chapter 2: Working with Commands and Plugins
Introduction
Finding a plugin
Installing a plugin
Removing a plugin
Creating a new command
Customizing an existing command
Using an alternative check command for hosts
Writing a new plugin from scratch
Implementing threshold checks in a plugin
Using macros as environment variables in a plugin
Chapter 3: Working with Checks and States
Introduction
Specifying how frequently to check a host or service
Changing thresholds for PING RTT and packet loss
Changing thresholds for disk usage
Scheduling downtime for a host or service
Managing brief outages with flapping
Adjusting flapping percentage thresholds for a service
Chapter 4: Configuring Notifications
Introduction
Configuring notification periods
Configuring notifications for groups
Choosing states for notification
Specifying the number of failed checks before notification
Automating contact rotation
Defining an escalation for repeated notifications
Defining a custom notification method
Filtering notifications based on a host or service value
Chapter 5: Monitoring Methods
Introduction
Monitoring PING for any host
Monitoring SSH for any host
Checking an alternative SSH port
Monitoring mail services
Monitoring web services
Checking that a website returns a given string
Monitoring database services
Monitoring the output of an SNMP query
Monitoring a RAID or other hardware device
Creating an SNMP OID for monitoring
Chapter 6: Enabling Remote Execution
Introduction
Monitoring local services on a remote machine with NRPE
Setting the listening address for NRPE
Setting allowed client hosts for NRPE
Creating new NRPE command definitions securely
Giving limited sudo(8) privileges to NRPE
Using check_by_ssh with key authentication instead of NRPE
Using check_mk instead of NRPE
Chapter 7: Using the Web Interface
Introduction
Using the Tactical Overview
Viewing and interpreting availability reports
Viewing and interpreting trends
Viewing and interpreting notification history
Adding comments on hosts or services in the web interface
Viewing configuration in the web interface
Scheduling checks from the web interface
Acknowledging a problem via the web interface
Chapter 8: Managing Network Layout
Introduction
Creating a network host hierarchy
Using the network map
Choosing icons for hosts
Establishing a host dependency
Establishing a service dependency
Monitoring individual nodes in a cluster
Using the network map as an overlay
Chapter 9: Managing Configuration
Introduction
Grouping configuration files in directories
Keeping a configuration under version control
Configuring host roles using groups
Building groups using regular expressions
Using inheritance to simplify configuration
Defining macros in a resource file
Using another object's directives in a host or service check
Using custom directives
Dynamically building host definitions
Chapter 10: Security and Performance
Introduction
Using authentication for the Nagios Core web interface
Using authenticated contacts
Writing debugging information to the Nagios log file
Monitoring Nagios performance with nagiostats
Setting up a redundant monitoring host
Chapter 11: Automating and Extending Nagios Core
Introduction
Allowing and submitting passive checks
Submitting passive checks from a remote host with NSCA
Submitting passive checks in response to SNMP traps
Setting up an event handler script
Tracking host and service states with Nagiosgraph
Reading status in a MySQL database with NDOUtils
Reading status from a Unix socket with MK Livestatus
Writing customized Nagios Core reports
Getting extra visualizations with NagVis
Writing custom Nagios Core management scripts

Book Details

ISBN 139781785889332
Paperback386 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering pfSense Book Cover
Mastering pfSense
$ 39.99
$ 10.00
Learning Ansible 2 - Second Edition Book Cover
Learning Ansible 2 - Second Edition
$ 35.99
$ 10.00
Docker: Creating Structured Containers Book Cover
Docker: Creating Structured Containers
$ 59.99
$ 10.00
Raspberry Pi for Secret Agents - Third Edition Book Cover
Raspberry Pi for Secret Agents - Third Edition
$ 27.99
$ 10.00
DevOps for Networking Book Cover
DevOps for Networking
$ 39.99
$ 10.00
Elasticsearch 5.x Cookbook - Third Edition Book Cover
Elasticsearch 5.x Cookbook - Third Edition
$ 43.99
$ 10.00