Book Image

Nagios Core Administration Cookbook Second Edition - Second Edition

By : Tom Ryder
Book Image

Nagios Core Administration Cookbook Second Edition - Second Edition

By: Tom Ryder

Overview of this book

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 (18 chapters)
Nagios Core Administration Cookbook Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Creating a network host hierarchy


In this recipe, you'll learn how to establish a parent-child relationship for two hosts in a very simple network in order to take advantage of Nagios Core's reachability logic. Changing this configuration is very simple; it involves adding only one directive and optionally changing some notification options.

Getting ready

You will need to run Nagios Core 4.0 or a newer server and have at least two hosts, one of which is only reachable via the other. The host that allows communication with the other is the parent host. You should be reasonably confident that a loss of connectivity to the parent host necessarily implies that the child host will become unreachable from the monitoring server.

Access to the web interface of Nagios Core would also be useful as making this change will change the appearance of the network map; this is discussed in the "Using the network map" recipe in this chapter.

Our example will use a Nagios Core monitoring server, olympus.example...