Page 1 of 2
Email Notifications
Posted: Tue Oct 27, 2015 3:05 pm
by jcwuerfl
So I originally setup a Contact & Contact Group which was supposed to email a distribution group. However, I wasn't getting any emails sent to this distribution group. I then setup the user under admin/users and then I started getting emails. I noticed that I only had sendmail turned on now and I think that's why I wasn't getting emails before with just the Contact and the Contact int the Contact Group? If I switched it to smtp would that work w/o adding them to the Admin/Users area?
Thanks!
Re: Email Notifications
Posted: Tue Oct 27, 2015 3:57 pm
by lmiltchev
However, I wasn't getting any emails sent to this distribution group.
Can you clarify - emails were not being sent by nagios or not being received?
Go Reports->Notifications and show us a screenshot of this page.
Do you see any errors in the maillog?
Re: Email Notifications
Posted: Tue Oct 27, 2015 4:11 pm
by jcwuerfl
They didn't show up in my inbox. I am not sure how far it got in sending them.
Re: Email Notifications
Posted: Wed Oct 28, 2015 1:45 am
by Box293
Can you please provide this information:
lmiltchev wrote:Go Reports->Notifications and show us a screenshot of this page.
Do you see any errors in the maillog?
Re: Email Notifications
Posted: Wed Oct 28, 2015 10:18 am
by jcwuerfl
Lets just stick with the generic question can with SMTP or Sendmail can you just have a contact in Configure/Contact and have it email you? Or do you have to have a User account in Admin/Users as well ?
Thanks!
Re: Email Notifications
Posted: Wed Oct 28, 2015 10:26 am
by tmcdonald
If you want to use SMTP you need to have both a contact and associated XI User, otherwise you'll need to configure all the SMTP handling yourself through a custom script or a daemon (which we would not be able to provide support for).
If you want to use Sendmail, you can either use a contact or a contact+User, it all depends on the notification command you have assigned.
Re: Email Notifications
Posted: Wed Oct 28, 2015 10:29 am
by jcwuerfl
Ok. How would I check the notification command ? I'd rather not do a bunch of XI users for a lot of this "distribution type groups"
Re: Email Notifications
Posted: Wed Oct 28, 2015 10:34 am
by tmcdonald
Under Configure -> Core Config Manager -> Contacts, you edit the contact and click the "Manage Host Notification Commands" and "Manage Service Notification Commands" buttons.
Re: Email Notifications
Posted: Wed Oct 28, 2015 10:38 am
by jcwuerfl
Ok, I don't see one there specified currently. Which would would I assign?
Thanks!
Re: Email Notifications
Posted: Wed Oct 28, 2015 10:41 am
by tmcdonald
That depends on a few factors. If you are just trying to use a contact with no associated user, you will probably want the notify-host-by-email and notify-service-by-email commands as they use Sendmail.