Page 5 of 7

Re: Nagios XI Don't Send E-Mail

Posted: Mon Feb 01, 2016 11:19 am
by Bone8Head
hsmith wrote:
Bone8Head wrote:nagiosfe.finance.com
Are you sending emails as "@finance.com"? Do you own this domain? It could be possible that it is getting filtered on your end trying to look up the domain, and then not having it resolve back to your IP.
Our internal domain is this.
Our E-Mail end with @finance-evolution.com .
Is a little different..

Re: Nagios XI Don't Send E-Mail

Posted: Mon Feb 01, 2016 11:24 am
by hsmith
Does your email hit the web at any point, or is it all internal?

Re: Nagios XI Don't Send E-Mail

Posted: Mon Feb 01, 2016 4:02 pm
by Bone8Head
hsmith wrote:Does your email hit the web at any point, or is it all internal?
It is all internal I guess

Re: Nagios XI Don't Send E-Mail

Posted: Mon Feb 01, 2016 4:21 pm
by rkennedy
Does your Nagios server have your internal DNS settings configured on it?

Re: Nagios XI Don't Send E-Mail

Posted: Tue Feb 02, 2016 2:33 am
by Bone8Head
rkennedy wrote:Does your Nagios server have your internal DNS settings configured on it?
Yes, the primary DNS and the Secondary Aswell.

Re: Nagios XI Don't Send E-Mail

Posted: Tue Feb 02, 2016 2:09 pm
by tgriep
Can you go in to Core Config Manager > Contacts and click on the floppy icon next to the nagiosadmin contact, copy the settings for that contact and post them here?
In the maillog files, I didn't see the contact getting email sent to it so we need to see if the contact settings are correct.

Re: Nagios XI Don't Send E-Mail

Posted: Wed Feb 03, 2016 2:37 am
by Bone8Head
tgriep wrote:Can you go in to Core Config Manager > Contacts and click on the floppy icon next to the nagiosadmin contact, copy the settings for that contact and post them here?
In the maillog files, I didn't see the contact getting email sent to it so we need to see if the contact settings are correct.
Ok. (I put the xxx.xxx on the E-Mail, but the E-Mail is Correct).

Code: Select all

###############################################################################
#
# Contact configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date:	      2016-02-03 08:36:25
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define contact {
	contact_name                  		nagiosadmin
	alias                         		Nagios Administrator
	host_notifications_enabled    		1
	service_notifications_enabled 		1
	host_notification_period      		nagiosadmin_notification_times
	service_notification_period   		nagiosadmin_notification_times
	host_notification_options     		d,u,r,
	service_notification_options  		w,c,r,
	host_notification_commands    		xi_host_notification_handler
	service_notification_commands 		xi_service_notification_handler
	email                         		[email protected]
	use                           		xi_contact_generic
	}	

###############################################################################
#
# Contact configuration file
#
# END OF FILE
#
###############################################################################]

Re: Nagios XI Don't Send E-Mail

Posted: Wed Feb 03, 2016 3:35 pm
by tgriep
All of those settings are correct. In a previous post, you were asked to change you email settings to SMTP, is that still set that way?
Go to Admin > Manage Email Settings to verify that.
If the settings are still setup for SMTP, we would need to look at the following log files for errors.

Code: Select all

/usr/local/nagiosxi/tmp/phpmailer.log
It looks like the system is trying to send emails ( The Notification Log shows it) but something is blocking them.

Re: Nagios XI Don't Send E-Mail

Posted: Thu Feb 04, 2016 9:12 am
by Bone8Head
tgriep wrote:All of those settings are correct. In a previous post, you were asked to change you email settings to SMTP, is that still set that way?
Go to Admin > Manage Email Settings to verify that.
If the settings are still setup for SMTP, we would need to look at the following log files for errors.

Code: Select all

/usr/local/nagiosxi/tmp/phpmailer.log
It looks like the system is trying to send emails ( The Notification Log shows it) but something is blocking them.
Yes, is still SMTP.
In the Path /usr/local/nagiosxi/tmp/ I don't have any phpmailer.log (even in the Sub-Directory of it).

Image

I used the "Find file" option with WinSCP but actually there is not that file in all /usr/

Re: Nagios XI Don't Send E-Mail

Posted: Thu Feb 04, 2016 10:22 am
by tgriep
Actually, not having the phpmailer.log file is good. It only created and added to if you are having errors.
Can you look at the logs on your smtp server for any errors?
If seems that the XI server is sending emails to the SMTP host and maybe they are not making it through that server.