How can I configure multiple notification options in a single check?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

How can I configure multiple notification options in a single check?

Post by shoreypu »

Hello,

I've been asked to send alerts to a different/second email address when a check enters a critical state. I tried to accomplish this by setting up a second service template, but it looks like the service template listed first takes priority.

For example,
If I have our standard template listed first, followed by the new critical template, I get the following:
notification_options r,w,u,c
If I switch them, putting new critical template first, the notification options change:
notification_options c

I'd like to find a way to utilize both notification paths (in a single check).

I'm sure there's a way to do this (hopefully easily). Any assistance is greatly appreciated.

Thanks in advance.
sgardil
Posts: 355
Joined: Wed Aug 09, 2023 9:58 am

Re: How can I configure multiple notification options in a single check?

Post by sgardil »

Hey @shoreypu

I believe you can do this with creating a new contact to send the critical notifications to. While creating the new contact make sure to set up the alert settings to be selected for critical only. Then you'll need to add that contact to the services you want this for. Make sure to keep the notification options in your template to get all of the checks but if you no longer want to receive critical notifications to the normal email you may need to modify the notification options there as well to not include critical. Let us know if this is what you are looking for/if it fixes your issue.
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: How can I configure multiple notification options in a single check?

Post by shoreypu »

Testing was successful and I'll be implementing into production tomorrow. Thanks for all your help.
sgardil
Posts: 355
Joined: Wed Aug 09, 2023 9:58 am

Re: How can I configure multiple notification options in a single check?

Post by sgardil »

No problem, glad it worked out and that we could help. If you have anymore questions feel free to reach out.
bofjvwn439
Posts: 2
Joined: Wed Dec 20, 2023 10:09 pm

Re: How can I configure multiple notification options in a single check?

Post by bofjvwn439 »

It appears that the first listed template takes precedence. To resolve this, you might need to configure the templates to combine their notification options rather than override them. retro bowl
Post Reply