Email notifications not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Email notifications not working

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

Re: Email notifications not working

Post 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.
Former Nagios employee
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Email notifications not working

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

abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Email notifications not working

Post by abrist »

Could you pm one of us a screenshot of your XI email configuration?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Email notifications not working

Post 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?
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Email notifications not working

Post by vmesquita »

Yes. I also tried sending an email directly from the command-line, using telnet on the SMTP server, and it worked.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Email notifications not working

Post by abrist »

As you are not using any auth, try using the "sendmail" bullet instead of the smtp bullet.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Email notifications not working

Post 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: ###############
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Email notifications not working

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked