Email Notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Email Notifications

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Email Notifications

Post 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?

Code: Select all

tail -100 /var/log/maillog
Be sure to check out our Knowledgebase for helpful articles and solutions!
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Email Notifications

Post by jcwuerfl »

They didn't show up in my inbox. I am not sure how far it got in sending them.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Email Notifications

Post 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?

Code: Select all

tail -100 /var/log/maillog
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Email Notifications

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notifications

Post 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.
Former Nagios employee
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Email Notifications

Post 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"
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notifications

Post 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.
Former Nagios employee
jcwuerfl
Posts: 76
Joined: Tue Jun 10, 2014 12:44 pm

Re: Email Notifications

Post by jcwuerfl »

Ok, I don't see one there specified currently. Which would would I assign?

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

Re: Email Notifications

Post 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.
Former Nagios employee
Locked