Email Settings nuisance

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
waydms
Posts: 21
Joined: Tue Aug 20, 2013 2:01 pm
Location: North Carolina

Email Settings nuisance

Post by waydms »

Hey everyone!

New to this system and have some novice Linux experience. My manager proposed that we look into Nagios for our network monitoring and here I am!
I've already gotten a virtual PC running of the latest NagiosXI (standard). Created a couple of users, checked around some settings, etc. Before adding devices, I would like to setup email for my notifications.

I've tried some settings on my own with no luck. Continues to tell me "SMTP Error: Could not connect to SMTP host.".
Mail log states the same. I believe it's attempting to search for an MX that doesn't exist.

We do not host our own mail servers and use Office 365 for that. Attempted the server pod******.outlook.com, port 587, TLS with proper user/pwd with no luck and same error. Kind of blind as to what to try next. Any thoughts?

Thank you for your efforts on this! :D
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Email Settings nuisance

Post by sreinhardt »

First things first, are you using contacts or users within XI? Secondly can you confirm that your ISP allows you to send outbound on 587? Something like "nmap -p 587 pod******.outlook.com" Should show as Open for you. Thirdly, please run an "nslookup pod******.outlook.com" and verify that the IP address is resolving and returning correctly.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
waydms
Posts: 21
Joined: Tue Aug 20, 2013 2:01 pm
Location: North Carolina

Re: Email Settings nuisance

Post by waydms »

Alrighty, let's go down the list...

1. Users. Checked the contacts.cfg and they were properly set to my knowledge and review.
2. It should be allowed. Detailed in About section of OWA server settings.
4. Ran both commands in the terminal and received the following...

[root@localhost /]# nmap -p 587 pod*****.outlook.com

Starting Nmap 5.51 ( http://nmap.org ) at 2013-08-20 15:25 EDT
Failed to resolve given hostname/IP: pod*****.outlook.com. Note that you can't
use '/mask' AND '1-4,7,100-' style IP ranges.
WARNING: No targets were specified, so 0 hosts scanned.
[root@localhost /]# nslookup pod*****.outlook.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached

Ran the same commands from my Windows machine and received that the port is open, multiple server addresses and all the lovely information as usual.

Thought on this for a second and it never dawned on me to attempt to just ping Google or something familiar. Did so and it cannot find the host at all. Checked my resolv.conf and it is pulling all correct DNS servers, internal and external.
It is talking perfectly fine internal so thinking that Virtual PC is causing some problems for it to talk to the outside?
Please tell me I'm not just going on and on, Hah!
Will check into some settings in the meantime while this reply sits.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Email Settings nuisance

Post by abrist »

Definitely looks like dns or route issues. Try pinging the ip of an external site like google (as pinging the dns name is not currently working):

Code: Select all

ping 173.194.46.39
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
waydms
Posts: 21
Joined: Tue Aug 20, 2013 2:01 pm
Location: North Carolina

Re: Email Settings nuisance

Post by waydms »

Now can access the interwebz.
Just receiving those Dave errors, Hah.
Checked the network and ifcfg-eth0 files and corrected any mistakes or missing info.
Doing some timezone work now.
Will let everyone know once I've verified the email settings!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Email Settings nuisance

Post by sreinhardt »

Cool, for a second I wasn't sure if you actually ran the commands with *** glad to see you are progressing forward, and definitely let us know if issues arise!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
waydms
Posts: 21
Joined: Tue Aug 20, 2013 2:01 pm
Location: North Carolina

Re: Email Settings nuisance

Post by waydms »

Don't worry sreinhardt 8-)
Used the suggested ntp command in the Nagios FAQ/Wiki to correct Dave errors.
Everything is working with the pod*****.outlook.com settings.
Appreciate the quick responses from everyone.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Email Settings nuisance

Post by sreinhardt »

Awesome, I will close this up then and you are most welcome!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked