Nagios XI Don't Send E-Mail

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Nagios XI Don't Send E-Mail

Post 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..
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Don't Send E-Mail

Post by hsmith »

Does your email hit the web at any point, or is it all internal?
Former Nagios Employee.
me.
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Nagios XI Don't Send E-Mail

Post by Bone8Head »

hsmith wrote:Does your email hit the web at any point, or is it all internal?
It is all internal I guess
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI Don't Send E-Mail

Post by rkennedy »

Does your Nagios server have your internal DNS settings configured on it?
Former Nagios Employee
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Nagios XI Don't Send E-Mail

Post by Bone8Head »

rkennedy wrote:Does your Nagios server have your internal DNS settings configured on it?
Yes, the primary DNS and the Secondary Aswell.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Don't Send E-Mail

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Nagios XI Don't Send E-Mail

Post 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
#
###############################################################################]
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Don't Send E-Mail

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Bone8Head
Posts: 106
Joined: Tue Nov 10, 2015 2:39 am

Re: Nagios XI Don't Send E-Mail

Post 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/
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Don't Send E-Mail

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked