notify-service-by-email doesnt send any email to the contact

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

notify-service-by-email doesnt send any email to the contact

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: notify-service-by-email doesnt send any email to the con

Post by jdalrymple »

The way to test is to submit a notification while tailing the Nagios system's maillog:

Code: Select all

tail -f /var/log/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.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: notify-service-by-email doesnt send any email to the con

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

Re: notify-service-by-email doesnt send any email to the con

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: notify-service-by-email doesnt send any email to the con

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: notify-service-by-email doesnt send any email to the con

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: notify-service-by-email doesnt send any email to the con

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

Re: notify-service-by-email doesnt send any email to the con

Post by tgriep »

Restarting postfix will not effect the Nagios process except that the system will be able to send emails.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked