Configure Email NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
[email protected]
Posts: 8
Joined: Tue Aug 02, 2016 2:11 am

Configure Email NagiosXI

Post by [email protected] »

Hi team,

I am trying to configure my NAgios XI to send emails but i keep getting the error
Mailer said: [01-31-2017 09:51:03] SMTP Error: Could not connect to SMTP host. (method=smtp;host=webmail.mycompany.co.ke;port=25;smtpauth=true;security=ssl), Referer: admin/testemail.php
An error occurred sending a test email! (i mycompany is a fictitious name to represent the company i work for)...attached is the screenshot of my settings. I can telnet to port 25 of the mail server from the Nagiosxi server. I dont get why i cant send..any ideas fam?
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Configure Email NagiosXI

Post by dwhitfield »

As a starting point, did you go through https://assets.nagios.com/downloads/nag ... ios-XI.pdf ?

You'll also want to take a look at https://support.nagios.com/kb/article.php?id=36

What version of XI are you using? There are some *old* notification bugs, so I doubt that's what's going on judging by your screenshot, but it will be useful info for recreating your issue.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Configure Email NagiosXI

Post by rkennedy »

Is the nagios machine able to resolve webmail.mycompany.co.ke? If so, then my next bet would be to look at SSL part. Are you sure that you're using the right port for SSL connections?

Lastly, authenticating to send from [email protected] most likely won't work - you'll need to provide a valid address that the account has send as permissions for, and adjust the 'Send Mail From' variable accordingly.
Former Nagios Employee
[email protected]
Posts: 8
Joined: Tue Aug 02, 2016 2:11 am

Re: Configure Email NagiosXI

Post by [email protected] »

The server is able to resolve... I am just trying to send a sample email.
using the admin>manage mail settings......

PING webmail.mycompany.co.ke (172.29.229.99) 56(84) bytes of data.
64 bytes from webmail.mycompany.co.ke (172.29.229.99): icmp_seq=1 ttl=254 time=0.472 ms
64 bytes from webmail.mycompany.co.ke (172.29.229.99): icmp_seq=2 ttl=254 time=0.472 ms
64 bytes from webmail.mycompany.co.ke (172.29.229.99): icmp_seq=3 ttl=254 time=0.342 ms
64 bytes from webmail.mycompany.co.ke (172.29.229.99): icmp_seq=4 ttl=254 time=0.546 ms
64 bytes from webmail.mycompany.co.ke (172.29.229.99): icmp_seq=5 ttl=254 time=0.462 ms
^C
--- webmail.mycompany.co.ke ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.342/0.458/0.546/0.071 ms


It could actually be SSL..any doc on how to add company certs for NAgiosxi you might know about?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Configure Email NagiosXI

Post by rkennedy »

You could verify this with openssl s_client against port 25 of webmail.mycompany.co.ke - it may just take importing a CA cert. It isn't anything specific to Nagios, but actually the linux system. This link should help - http://kb.kerio.com/product/kerio-conne ... -1605.html
Former Nagios Employee
[email protected]
Posts: 8
Joined: Tue Aug 02, 2016 2:11 am

Re: Configure Email NagiosXI

Post by [email protected] »

Thanks for the response.Currently doing that for red-hat linux. If i may ask, are there company specific certificates that one should use instead of these?

regards
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configure Email NagiosXI

Post by tmcdonald »

I guess I'm a bit unclear what you are asking. If your company has generated its own certificate then by all means you are free to use that.
Former Nagios employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Configure Email NagiosXI

Post by tgriep »

If you can telnet to port 25 on your SMTP server and it responds with text, then you shouldn't have to select SSL for the security setting on the Admin > Manage Email Settings page in the XI GUI.
Try setting it to None and see if that fixes the issue for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 8
Joined: Tue Aug 02, 2016 2:11 am

Re: Configure Email NagiosXI

Post by [email protected] »

i get an authentication error when i dont use SSL

A test email was sent to [email protected]
----
Mailer said: [02-08-2017 16:53:11] SMTP Error: Could not authenticate. (method=smtp;host=webmail.mycompany.co.ke;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!


the email i am using is mine....tough one this one it seems!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Configure Email NagiosXI

Post by rkennedy »

rkennedy wrote: Lastly, authenticating to send from [email protected] most likely won't work - you'll need to provide a valid address that the account has send as permissions for, and adjust the 'Send Mail From' variable accordingly.
See my statement above. You'll more than likely need to change the send from to match who you're authenticating as.
Former Nagios Employee
Locked