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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
sushant4tech
Posts: 25
Joined: Fri Jul 31, 2015 12:24 am

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

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

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

Post 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?
Former Nagios Employee.
me.
User avatar
sushant4tech
Posts: 25
Joined: Fri Jul 31, 2015 12:24 am

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

Post by sushant4tech »

Hi hsmith,

Both the servers are hosted on Amazon.
- $u$h@nT
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
sushant4tech
Posts: 25
Joined: Fri Jul 31, 2015 12:24 am

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

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

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

Post 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.
Former Nagios Employee.
me.
Locked