preferred notification email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

preferred notification email

Post by kendallchenoweth »

I'm running Nagios XI 2014R2.0 and noticed that email notifications only seem to work for those contacts defined as admin users and the email address in the admin user definition is used in preference to the contact email email address. Is this expected behavior? Does every contact that should receive notification also be defined as an admin user?

Thanks in advance!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: preferred notification email

Post by tmcdonald »

If your contacts have the "xi_*_notification_command" notification commands defined (where * is host/service) then they will use the associated User email address and be able to use SMTP. Without that, they are mostly restricted to using sendmail which can be flaky. However, the Admin status should not matter. Are the non-admins read-only or something?

http://assets.nagios.com/downloads/nagi ... ntacts.pdf
Former Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: preferred notification email

Post by lmiltchev »

Does every contact that should receive notification also be defined as an admin user?
No. You probably have a mismatch between users and contacts. They are similar but not the same. For more information on xi users and contacts (and how to configure your notifications) review the following documents:

http://assets.nagios.com/downloads/nagi ... ntacts.pdf

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Let me know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

Re: preferred notification email

Post by kendallchenoweth »

So if I understand the links below, if a user is defined as an admin and a contact and I'm using the xi_notification script, the admin email address will be used instead of the linked contact definition? If there is no admin user defined for the contact, the contact definition email is used.

I'm trying to use the xi notification script and the contact email address which may sometimes differ from the linked admin email. (The reason is that I want to test notifications to named contacts in QA and redirect all emails to myself.

Is this possible and what's the best configuration for this?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: preferred notification email

Post by lmiltchev »

The reason is that I want to test notifications to named contacts in QA and redirect all emails to myself
Can't you add all these contacts and yourself to a contact group and add this contact group to your hosts/services? This way all members of this contact group (including you) will receive alerts.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked