Book Image

Nagios Core Administration Cookbook

By : Tom Ryder
Book Image

Nagios Core Administration Cookbook

By: Tom Ryder

Overview of this book

Network monitoring requires significantly more than just pinging hosts. This cookbook will help you to comprehensively test your networks' major functions on a regular basis."Nagios Core Administration Cookbook" will show you how to use Nagios Core as a monitoring framework that understands the layers and subtleties of the network for intelligent monitoring and notification behaviour. Nagios Core Administration Guide introduces the reader to methods of extending Nagios Core into a network monitoring solution. The book begins by covering the basic structure of hosts, services, and contacts and then goes on to discuss advanced usage of checks and notifications, and configuring intelligent behaviour with network paths and dependencies. The cookbook emphasizes using Nagios Core as an extensible monitoring framework. By the end of the book, you will learn that Nagios Core is capable of doing much more than pinging a host or to check if websites respond.
Table of Contents (18 chapters)
Nagios Core Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 called DISK, which will run the check_local_disk command to examine the state of 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 fills completely without any warning, this is amongst 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 127.0.0.1. This is because the check_disk plugin can't directly check the disk usage of a remote server over a network. However, the principles discussed here could be adapted to running the check on a remote server using check_nrpe. The use...