EMail Notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

EMail Notifications

Post by mtkaschools »

It appears that our e-mail notifications aren't working. The log shows that they're being sent, but we don't actually get them. When I send a test message, those do come thru. I'm not really sure what to check for next.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: EMail Notifications

Post by nscott »

It shows in the log. Can you check to see if you're getting notifications in /var/spool/mail/root ?
Nicholas Scott
Former Nagios employee
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: EMail Notifications

Post by mtkaschools »

yes, that log is very full of notifications.
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: EMail Notifications

Post by mtkaschools »

550 5.1.2 <>... Host unknown (Name server: exchange3.****.org: host not found)

That's our old email server. I can't seem to find where to change this value. When I look in the NagiosXI EMail settings, it's set for our new mail server; but somewhere; it's getting this value; which is wrong.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: EMail Notifications

Post by lmiltchev »

If you are using "Sendmail", you can try switching to "SMTP". Check all of your settings: host, port, username, password and security. Also, double check your firewall settings. If it is not a problem, you can temporarily disable your firewall just to test it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: EMail Notifications

Post by mtkaschools »

I already tried sendmail, same results. Everything is internal, so I don't see how it would be the firewall.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: EMail Notifications

Post by nscott »

Can you try logging into the postgresql, from the command line:

psql nagiosxi nagiosxi
SELECT * FROM xi_options

The setting we're looking for is the smtp_ stuff, is that up to date?
Nicholas Scott
Former Nagios employee
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: EMail Notifications

Post by mtkaschools »

hmm, that doesn't seem to return any results. it just moves to the next line.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: EMail Notifications

Post by nscott »

Is it connecting to the database in the first place? Does it give you a psql prompt after you enter the 'psql nagiosx nagiosxi' at the command prompt?

Edit:

Upon glancing at my previous post, I made a slight typo:

SELECT * FROM xi_options;

I forgot the semicolon.
Nicholas Scott
Former Nagios employee
mtkaschools
Posts: 58
Joined: Tue Sep 14, 2010 7:53 am

Re: EMail Notifications

Post by mtkaschools »

okay; that worked. Yes, all SMTP items seem to be correct. I just don't understand why all the sudden I'm not getting messages. I get the 'test' message just fine.
Locked