Automating contact rotation
In this recipe, we'll learn how to automatically arrange notifications so that they are only received by certain contacts in a group at certain times.
For companies with more than one person as dedicated network staff, it's a common practice to have an on-call roster, where one member of staff will be the dedicated on-call person for a certain period of time, perhaps a week or two. The kind of setup we'll configure here allows filtering notifications, so that they're only delivered to contacts at appropriate times; notifications are generated by hosts and services and sent to all the contacts in the nominated group, but only one (or perhaps more than one) of the contacts actually receives it.
We'll set this up using two properties of contacts that allow us to restrict the time period within which they should receive notifications: host_notification_period
and service_notification_period
.
Getting ready
You should have a Nagios Core 3.0 or newer server, with at least...