Monitoring individual nodes in a cluster

In this recipe, you'll learn how to monitor a collection of hosts in a cluster using the check_cluster plugin included in the Nagios Plugins standard. Being able to monitor more than one host collectively is useful in situations with redundancy; one of a set of hosts being in the DOWN state, perhaps for power conservation or maintenance reasons, is not necessarily a cause for notification. However, if a larger number or all of the hosts were down, we would definitely want to be notified. Using check_cluster allows us to arrange this.

Getting ready

You will need Nagios Core 4.0 or a newer server and to have shell access to change its backend configuration. You will also need to have at least two monitored ...

Get Nagios Core Administration Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.