Page 1 of 1
Notification Issue
Posted: Wed Aug 02, 2017 3:41 pm
by mdzekevich
Hello,
I have configured 2 notification templates via Admin - Notification Management, one for host down alert, the other is for host up. Both templates has been applied to user.
User can receive an email with host up alert, but doesn't receive host down email. Nagiosadmin receives both notifications.
Notifications report shows that host down notification is being sent to user.
How do I troubleshoot this issue?
Thanks,
Re: Notification Issue
Posted: Wed Aug 02, 2017 4:47 pm
by dwhitfield
I'd have the user check their spam. That said, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Also, are you using sendmail or PHPMailer? Once I know that, I can get and look at the appropriate logs.
UPDATE: Profile received and shared.
Re: Notification Issue
Posted: Wed Aug 02, 2017 5:18 pm
by mdzekevich
Hi, PM'd the system profile.
I was wondering if it is possible at all to configure a single user to use separate notification templates for host going down and up. I've been experimenting and it looks like that the last applied template works, overwriting the settings of the previous template.
We use SMTP mail from our Exchange server - overall sending and receving emails from NAGIOS is not a problem. I think the problem is with notification templates configuration.
Thanks for your help!
Re: Notification Issue
Posted: Thu Aug 03, 2017 1:06 am
by tacolover101
both templates should apply, but if they contradict each other that could get messy. can you paste the text configs for this?
Re: Notification Issue
Posted: Thu Aug 03, 2017 8:53 am
by mdzekevich
How do I pull out text config for notification templates?
Re: Notification Issue
Posted: Thu Aug 03, 2017 2:33 pm
by lmiltchev
The easiest way to view the Notification preferences of a "xi user" would be to log in (or masquerade in) as this user, click on the username (i.e. "maratd") in the upper right corner, then click on the "Notification Preferences".
Re: Notification Issue
Posted: Thu Aug 03, 2017 3:42 pm
by mdzekevich
The user shows notifications preferences of the most recent template applied.
Let me describe my setup. I have 2 templates: RU Template DOWN containing custom message and triggering when the host goes down, and RU template UP triggering when the host goes up again.
The only difference between them, besides the actual message text, is in Notification Preferences tab. I am attaching screenshots of both. Whatever template I apply last, the user receives notification preferences only from it, not from both.
Re: Notification Issue
Posted: Fri Aug 04, 2017 11:52 am
by tgriep
The user accounts only use the last template that was applied to them and there is not a way to use separate notification templates for one user account.
One workaround is you could create 2 accounts, one for the UP message and one for the Down message.
They can share the same email address but different usernames.
Would that be an option?