Configuring notification for groups

In this recipe, we'll learn how to define a contact group for a host. We'll demonstrate this as part of the general best practice of sending notifications to contact groups, rather than to individual contacts, which allows for more flexibility in assigning individual contacts to the appropriate groups for receiving appropriate notifications.

Getting ready

You should have a Nagios Core 3.0 or newer server with at least one host configured already. We'll use the example of sparta.naginet, a host defined in its own file, which we'll configure to send its notifications to an existing contact group called noc.

How to do it...

We can configure notifications to be sent to our contact group as follows:

  1. Change to the objects ...

Get Nagios Core Administration Cookbook 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.