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.
notify-host-by-email;PING CRITICAL - Packet loss = 100%
- sushant4tech
- Posts: 25
- Joined: Fri Jul 31, 2015 12:24 am
Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%
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?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.
Former Nagios Employee.
me.
me.
- sushant4tech
- Posts: 25
- Joined: Fri Jul 31, 2015 12:24 am
Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%
Hi hsmith,
Both the servers are hosted on Amazon.
Both the servers are hosted on Amazon.
- $u$h@nT
Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%
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?
Can you run the following on the old server and post the output?
Code: Select all
tail -50 /var/log/maillog
ps auxBe sure to check out our Knowledgebase for helpful articles and solutions!
- sushant4tech
- Posts: 25
- Joined: Fri Jul 31, 2015 12:24 am
Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%
Hi tgriep,
i made change in main.cf as below and it worked. I started receiving mail.
Now i need to fix why i am not getting SMS lol...
i made change in main.cf as below and it worked. I started receiving mail.
Code: Select all
mydestination = nagios.instance3.com
- $u$h@nT
Re: notify-host-by-email;PING CRITICAL - Packet loss = 100%
I'm going to close this one since you have a different thread open for the SMS issue.sushant4tech wrote:Hi tgriep,
i made change in main.cf as below and it worked. I started receiving mail.Now i need to fix why i am not getting SMS lol...Code: Select all
mydestination = nagios.instance3.com
Former Nagios Employee.
me.
me.