Book Image

Nagios Core Administration Cookbook - Second Edition

By : Tom Ryder
Book Image

Nagios Core Administration Cookbook - 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
About the Author
About the Reviewer

Changing thresholds for disk usage

In this recipe, we'll configure the Nagios Core server to check its own disk usage and to flag a WARNING or CRITICAL state depending on how little free space is left on the disk. We'll accomplish this by adding a new service to the already defined localhost host called DISK, which will run the check_local_disk command to examine the state of the mounted volumes on the server.

Because burgeoning disk usage can creep up on any system administrator and because of the dire effect it can have when a disk suddenly gets filled completely without any warning, this is among the more important things to monitor in any given network.

For simplicity, we'll demonstrate this only for the monitoring server itself, as a host called localhost on This is because the check_disk plugin can't directly check the disk usage of a remote server. However, the principles discussed here could be adapted to run the check on a remote server using check_nrpe. The use of NRPE...