Page 1 of 1

Email notifications not working

Posted: Tue Jul 08, 2014 12:41 pm
by vmesquita
It's been about 10 days that Nagios doesn't send any notifications. I checked the SMTP server and it's ok. I was also able to manually send email connecting with telnet with no issues.

Here's a extract from /var/log/maillog:

Code: Select all

Jul  8 14:25:01 nagios postfix/qmgr[2259]: 9E478B187: removed
Jul  8 14:30:01 nagios postfix/pickup[27607]: CCCF0B2B5: uid=0 from=<root>
Jul  8 14:30:01 nagios postfix/cleanup[23606]: CCCF0B2B5: message-id=<20140708173001.CCCF0B2B5@nagios######>
Jul  8 14:30:01 nagios postfix/qmgr[2259]: CCCF0B2B5: from=<root@########>, size=799, nrcpt=1 (queue active)
Jul  8 14:30:01 nagios postfix/local[23614]: CCCF0B2B5: to=<root@###########>, orig_to=<root>, relay=local, delay=0.08, delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jul  8 14:30:01 nagios postfix/qmgr[2259]: CCCF0B2B5: removed
Jul  8 14:35:01 nagios postfix/pickup[27607]: A1EAAB3E1: uid=0 from=<root>
Jul  8 14:35:01 nagios postfix/cleanup[13484]: A1EAAB3E1: message-id=<20140708173501.A1EAAB3E1@##########>
Jul  8 14:35:01 nagios postfix/qmgr[2259]: A1EAAB3E1: from=<root@##########>, size=799, nrcpt=1 (queue active)
Jul  8 14:35:01 nagios postfix/local[13488]: A1EAAB3E1: to=<root@##########>, orig_to=<root>, relay=local, delay=0.07, delays=0.04/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Jul  8 14:35:01 nagios postfix/qmgr[2259]: A1EAAB3E1: removed

Re: Email notifications not working

Posted: Tue Jul 08, 2014 12:46 pm
by tmcdonald
Go to Admin -> Manage Email Settings -> Send A Test Email to test sending from XI. Post the maillog after the test and confirm whether or not you receive it.

Re: Email notifications not working

Posted: Tue Jul 08, 2014 1:09 pm
by vmesquita

Code: Select all



    A test email was sent to <##################>
    ----
    Mailer said: SMTP Error: Data not accepted.

    SMTP server error: is syntactically correct
    (method=smtp;host=##########;port=25;security=none)
    An error occurred sending a test email!


Re: Email notifications not working

Posted: Tue Jul 08, 2014 5:28 pm
by abrist
Could you pm one of us a screenshot of your XI email configuration?

Re: Email notifications not working

Posted: Tue Jul 08, 2014 5:30 pm
by slansing
Some of this may apply:

http://stackoverflow.com/questions/2227 ... iler-error

Are you absolutely sure you are using the correct port, and auth information? Do you have another system you can check this on? Such as your work station's mail client, etc?

Re: Email notifications not working

Posted: Wed Jul 09, 2014 12:50 pm
by vmesquita
Yes. I also tried sending an email directly from the command-line, using telnet on the SMTP server, and it worked.

Re: Email notifications not working

Posted: Wed Jul 09, 2014 3:06 pm
by abrist
As you are not using any auth, try using the "sendmail" bullet instead of the smtp bullet.

Re: Email notifications not working

Posted: Thu Jul 10, 2014 11:38 am
by vmesquita
With sendmail I get a positive response, but neither the test email or the notifications arrive:

Code: Select all

Test Email Settings

    A test email was sent to ############
    ----
    Mailer said: Message sent! (method=sendmail)

Use this to test your mail settings.

An email will be sent to: ###############

Re: Email notifications not working

Posted: Thu Jul 10, 2014 5:02 pm
by scottwilkerson
Is this running 2014? If so can you post the contents of

Code: Select all

tail -200 /usr/local/nagiosxi/tmp/phpmailer.log