Page 3 of 3

Re: Install won't relay off of my Exchange 2007 server

Posted: Thu Jan 09, 2014 4:26 pm
by jbruyet
sreinhardt, per a few Google responses I installed ssmtp and set that up. I know it's working because now I'm getting a crontab error about a file the server can't find. So, my Nagios server is sending out its notifications to the relay port on the Exchange Server, just not the Nagios program itself.

In your post you mention that the
proper route is to create a dns record internally that points the the exchange servers secondary IP and point nagios at that IP.
There's already a DNS record pointing to the relay port on the Exchange Server. How do I point Nagios at that IP? That's pretty much what I've been trying to do all along.

Thanks,

Joe B

Re: Install won't relay off of my Exchange 2007 server

Posted: Fri Jan 10, 2014 10:32 am
by sreinhardt
My mistake, it would not be an A record, but an mx record. Then when nagios queries your domain, from internal to your network, it will find the mx record pointing to the IP you want it to use and push to that. Just to let you know, outlook will not, and does not, use mx records to find the internal mail servers to push\pull to and this should not cause an issue with the notable exception if you have other systems that send mail and are pointed to it, but thats not really under my control as how you should proceed there.

Re: Install won't relay off of my Exchange 2007 server

Posted: Fri Jan 10, 2014 4:28 pm
by jbruyet
Hi sreinhardt, I now have an mx record pointing to the DNS name of the relay port on my Exchange Server but mail traffic still isn't getting through. I just did another Wireshark capture while I have a workstation in a critical state and there weren't any packets from my Nagios server. Any other ideas?

Thanks,

Joe B

Re: Install won't relay off of my Exchange 2007 server

Posted: Fri Jan 10, 2014 7:21 pm
by jbruyet
I just did a test email from ssmtp and it went through and popped right up on my screen. I checked /var/log/maillog and the only entries in there are from a messed up crontab (which is now fixed) and the one test email I just sent out.

So, I'm pretty sure now that the problem lies somewhere within Nagios. Anyone have any suggestions on where I should start looking?

Thanks,

Joe B

Re: Install won't relay off of my Exchange 2007 server

Posted: Sat Jan 11, 2014 11:11 am
by jbruyet
I FOUND THE PROBLEM!!!! I went spelunking and found the problem -- Nagios had the wrong location for mail. I was looking through files and when I went through commands.cfg I saw it had the location of mail as /bin/mail. Out of curiosity I did a search for mail and saw that the path is actually /usr/bin/mail. I corrected that, restarted the Nagios service and I started getting my alerts. Many thanks to those who took the time to help me with this.

Thanks,

Joe B

Re: [Solved] Install won't relay off of my Exchange 2007 ser

Posted: Sat Jan 11, 2014 11:16 am
by jbruyet
Sigh, I just saw a previous post where I had changed the mail path because I had installed sendEmail. Now I'm wondering if, when I removed sendEmail, I put the wrong path back in for mail. I'm thinking not because I did the sendEmail thing because I wasn't getting my alerts, but then again...

Thanks,

Joe B