Currently we set mail notification at host level, so it will be inherited to the service checks. Now we have the requirement to handle some of the checks differently. Alerting (mail and / or sms) should be send only to another recipient instead of the one, that was set at host level. Is that possible?
Yes, you can configure host and service notifications independently.
Thanks, can you give me an example how the configuration would look like?
You are already creating different Notification
objects for Host
and Service
objects, probably by one apply Notification "host-mail" to Host
and another apply Notification "service-mail" to Service
rule, similar to these in either the default configuration and/or the documentation section.
You can create a Notification
object for the required Service
objects with a custom NotificationCommand
.
Some links:
- https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#apply-notifications-to-hosts-and-services
- https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#notification-commands
- https://icinga.com/docs/icinga-2/latest/doc/09-object-types/#notification
- https://icinga.com/docs/icinga-2/latest/doc/09-object-types/#notificationcommand
In case of uncertainties, please feel free to share a redacted version of the relevant parts of your Icinga 2 configuration.