Page 1 of 2
EMail Notifications
Posted: Wed Jul 06, 2011 2:42 pm
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.
Re: EMail Notifications
Posted: Wed Jul 06, 2011 2:47 pm
by nscott
It shows in the log. Can you check to see if you're getting notifications in /var/spool/mail/root ?
Re: EMail Notifications
Posted: Thu Jul 07, 2011 6:42 am
by mtkaschools
yes, that log is very full of notifications.
Re: EMail Notifications
Posted: Thu Jul 07, 2011 6:47 am
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.
Re: EMail Notifications
Posted: Thu Jul 07, 2011 10:04 am
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.
Re: EMail Notifications
Posted: Thu Jul 07, 2011 4:04 pm
by mtkaschools
I already tried sendmail, same results. Everything is internal, so I don't see how it would be the firewall.
Re: EMail Notifications
Posted: Thu Jul 07, 2011 5:07 pm
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?
Re: EMail Notifications
Posted: Fri Jul 08, 2011 7:45 am
by mtkaschools
hmm, that doesn't seem to return any results. it just moves to the next line.
Re: EMail Notifications
Posted: Fri Jul 08, 2011 10:38 am
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.
Re: EMail Notifications
Posted: Sun Jul 10, 2011 9:16 pm
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.