Page 1 of 1

notify-host-by-email;PING CRITICAL - Packet loss = 100%

Posted: Thu Sep 03, 2015 8:53 am
by sushant4tech
We have a running instance of Nagios Core from a production server TEST-1 (Ubuntu 14.04.2). It was set up before i joined the organization so i am unaware of existing MTA configuration. We are properly receiving email and SMS notifications from this server.

Now i am trying to set up a 2nd instance of Nagios Core on a different production server TEST-2 (Ubuntu 14.04.2). I have little to no knowledge about setting up MTA. I was able to successfully install Nagios Core and added a couple of server for monitoring as well. All servers and services are configured perfectly. However for all email notification the CGI event log shows "notify-host-by-email;PING CRITICAL - Packet loss = 100%". I am not receiving any email or SMS. I have same contacts.cfg on this instance as the first one.

I want to check the existing configuration of MTA on TEST-1 so i can apply the same on TEST-2. Or if any of you can suggest any other way that fix this issue that would work too. Can anyone please help me to check it step-by-step? Please let me know for any additional information required.

Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%

Posted: Thu Sep 03, 2015 9:31 am
by hsmith
sushant4tech wrote:We have a running instance of Nagios Core from a production server TEST-1 (Ubuntu 14.04.2). It was set up before i joined the organization so i am unaware of existing MTA configuration. We are properly receiving email and SMS notifications from this server.

Now i am trying to set up a 2nd instance of Nagios Core on a different production server TEST-2 (Ubuntu 14.04.2). I have little to no knowledge about setting up MTA. I was able to successfully install Nagios Core and added a couple of server for monitoring as well. All servers and services are configured perfectly. However for all email notification the CGI event log shows "notify-host-by-email;PING CRITICAL - Packet loss = 100%". I am not receiving any email or SMS. I have same contacts.cfg on this instance as the first one.

I want to check the existing configuration of MTA on TEST-1 so i can apply the same on TEST-2. Or if any of you can suggest any other way that fix this issue that would work too. Can anyone please help me to check it step-by-step? Please let me know for any additional information required.
Are the two Nagios servers in different networks? There's no sending of mail being attempted from WAN site A to WAN site B in this scenario, correct?

Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%

Posted: Fri Sep 04, 2015 6:55 am
by sushant4tech
Hi hsmith,

Both the servers are hosted on Amazon.

Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%

Posted: Fri Sep 04, 2015 8:52 am
by tgriep
I am guessing that the old server is using either Sendmail or Postfix for the MTA and has been customized to send email from Amazon.
Can you run the following on the old server and post the output?

Code: Select all

tail -50 /var/log/maillog
ps aux

Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%

Posted: Sat Sep 05, 2015 1:38 am
by sushant4tech
Hi tgriep,

i made change in main.cf as below and it worked. I started receiving mail.

Code: Select all

mydestination = nagios.instance3.com
Now i need to fix why i am not getting SMS lol...

Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%

Posted: Tue Sep 08, 2015 9:05 am
by hsmith
sushant4tech wrote:Hi tgriep,

i made change in main.cf as below and it worked. I started receiving mail.

Code: Select all

mydestination = nagios.instance3.com
Now i need to fix why i am not getting SMS lol...
I'm going to close this one since you have a different thread open for the SMS issue.