Nagios Log Server not sending alert Emails

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
muratKURU
Posts: 14
Joined: Fri Jan 09, 2015 4:01 am

Re: Nagios Log Server not sending alert Emails

Post by muratKURU »

Can you tell me where I can find the SMTP settings on CentOS?
Below you can see the Mail Settings on the GUI
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Log Server not sending alert Emails

Post by scottwilkerson »

Out of curiosity, could the sending problem you were having be related to the DNS issue here
http://support.nagios.com/forum/viewtop ... 90#p128345

Any instance can be the sender of the email message, so all would need to ne able to resolve the DNS properly.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
muratKURU
Posts: 14
Joined: Fri Jan 09, 2015 4:01 am

Re: Nagios Log Server not sending alert Emails

Post by muratKURU »

No it's not.
Even after having corrected the DNS, we are still not able send Alarms via E-Mail.
Same error as reported.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Log Server not sending alert Emails

Post by ssax »

Did you verify that you've added the host to the allowed relay list on your mail server?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagios Log Server not sending alert Emails

Post by jolson »

The solution here is very likely the following:

Edit /var/www/html/nagioslogserver/system/libraries/Email.php and change (around line 48):

Code: Select all

    var $newline      = "\n";
    var $crlf         = "\n";
To:

Code: Select all

    var $newline      = "\r\n";
    var $crlf         = "\r\n";
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: Nagios Log Server not sending alert Emails

Post by lgroschen »

Jesse is likely right, some mail servers wont accept anything not RFC-compliant.

This bug has been fixed:
http://api.nagios.com/tps/viewtask.php?task_id=5651
/Luke
Locked