Book description
Over 90 hands-on recipes that will employ Nagios Core as the anchor of monitoring on your network
About This Book
- Master the advanced configuration techniques of Nagios Core to model your network better by improving hosts, services, and contacts
- Filter and improve the notifications that Nagios Core sends in response to failed checks, which can greatly assist you when diagnosing problems
- Pull Nagios Core's data into a database to write clever custom reports of your own devise
Who This Book Is For
If you are a network or system administrator and are looking for instructions and examples on working with Nagios Core, then this book is for you. Some basic shell command-line experience is required, and some knowledge of scripting would be helpful when we discuss how plugins work.
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
In Detail
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.
Style and approach
Each chapter contains a set of step-by-step recipes to perform an example of a commonly performed task related to network administration. The book begins by focusing closely on the properties and configuration of Nagios Core itself, and gradually moves on to other pieces of software that can support, manage, and extend the system.
Table of contents
-
Nagios Core Administration Cookbook Second Edition
- Table of Contents
- Nagios Core Administration Cookbook Second Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Understanding Hosts, Services, and Contacts
- 2. Working with Commands and Plugins
- 3. Working with Checks and States
-
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
-
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
-
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
-
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
- 8. Managing Network Layout
-
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
- 10. Security and Performance
-
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
- Index
Product information
- Title: Nagios Core Administration Cookbook - Second Edition
- Author(s):
- Release date: February 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785889332
You might also like
book
Nagios Core Administration Cookbook
The ideal book for System Administrators who want to move their network monitoring to an advanced …
book
Nagios, 2nd Edition
Good system administrators recognize problems long before anyone asks, "Hey, is the Internet down?" Nagios, an …
book
Learning Nagios - Third Edition
Learn and monitor your entire IT infrastructure to ensure your systems, applications, services, and business function …
book
Zabbix 5 IT Infrastructure Monitoring Cookbook
Discover practical recipes to help you efficiently monitor enterprise IT infrastructure for Windows, Linux, and networking …