Page 1 of 1
notify-service-by-email doesnt send any email to the contact
Posted: Fri Jul 31, 2015 5:54 am
by MSPk
Hi Team,
I have configured a service and attached a contact(contact only- not a user contact) which has host/service notification command as notify-service-by-email. This service has gone to a critical state multiple times but the contact has suggested that they have not received any email. I have checked in the notification windows and it shows an entry saying that an email has been sent to that contact, I have set the host/service notification options to receive critical, warning, recovery and unknown alerts, so the settings are correct. Please suggest how we can test if it is indeed working and emails are going out to this contact.
Re: notify-service-by-email doesnt send any email to the con
Posted: Fri Jul 31, 2015 8:13 am
by jdalrymple
The way to test is to submit a notification while tailing the Nagios system's maillog:
You should see some information related to the mail going out, and also whether it's accepted or rejected by the remote mail server. Is the remote mail server internal to your network, or is it somewhere across the Internet? Often times this type of a notification is blocked by yours or your ISP's firewall and you have to use SMTP.
Re: notify-service-by-email doesnt send any email to the con
Posted: Wed Aug 05, 2015 9:38 am
by MSPk
Hi Team,
We see the below error message in the logs when an alert is created for this contact remail is
Aug 3 11:23:13 eu1papu002 postfix/error[17161]: BDE576000AC: to=<contact@mailID>, relay=none, delay=477, delays=477/0.22/0/0, dsn=4.0.0, status=deferred (delivery temporarily suspended: host cluster8.eu.messagelabs.com[xxx.xxx.xxx.xxx] refused to talk to me: 450 Requested action aborted [7.2] 21704, please visit
http://www.messagelabs.com/support for more details about this error message.)
We are using the default sendmail setup to send email from Nagios XI without any changes, should we be changing any settings on sendmail service or on nagios?
Re: notify-service-by-email doesnt send any email to the con
Posted: Wed Aug 05, 2015 11:37 am
by tgriep
The server "cluster8.eu.messagelabs.com" is blocking the emails that are coming from the Nagios XI server and you will have to contact the admin of that server to allow the Nagios XI server to relay it's email through that server.
Re: notify-service-by-email doesnt send any email to the con
Posted: Thu Aug 06, 2015 5:23 am
by MSPk
Hi Team,
Can you please provide some documentation to configure relay server for our sendmail service, I think it is currently relaying from internet. Please provide some documentation.
Re: notify-service-by-email doesnt send any email to the con
Posted: Thu Aug 06, 2015 9:36 am
by lmiltchev
Can you please provide some documentation to configure relay server for our sendmail service, I think it is currently relaying from internet. Please provide some documentation.
Unfortunately, we don't have any documentation on the topic as this is out of the scope of Nagios support. Here's a link to the postfix basic configuration guide:
http://www.postfix.org/BASIC_CONFIGURATION_README.html
I hope this will point you to the right direction.
Re: notify-service-by-email doesnt send any email to the con
Posted: Wed Aug 19, 2015 8:18 am
by MSPk
Hi Team,
We have tested the postfix relay mechanism on our test server, now we want the same to be implemented in our production instance, we just wanted to know what will be the effect on the Nagios system if we restart the postfix service.
Re: notify-service-by-email doesnt send any email to the con
Posted: Wed Aug 19, 2015 12:53 pm
by tgriep
Restarting postfix will not effect the Nagios process except that the system will be able to send emails.