Page 1 of 1

Notifications not working

Posted: Mon May 11, 2020 11:06 am
by ncmpoli
I'm in the process of evaluating NagiosXI and I'm having issues with Notifications. I've tried both options - native SendMail and SMTP via our in house Exchange server - and none of them worked. Also, Notifications sent to my cell are not working. Can anyone point me to what the problem could be?
P.S. This is my second attempt to post this message. First one never made it to the board after clicking on Submit.

Re: Notifications not working

Posted: Mon May 11, 2020 3:01 pm
by benjaminsmith
Hello @ncmpoli,

Thanks for trying out Nagios XI. Let's try to get this solved for you. Besides, getting the notifications working, let us know if you have any other questions about Nagios XI.

In the email settings, Admin > System Config > Email Settings, what happens when you send a test email? Is this still not received?

Let's test a custom notification. Please login in as the nagiosadmin, setup the SMPT settings and enable logging, then send a custom notification. To do this, go to Home > Host Status > Select a Host... and to go the Advanced Tab, and select Send Custom Notification.
custom-nofification.png
If you are not able to receive the message, send us your system profile and we can review the logs. Thanks!

To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.

Reference:
Configuring Email and Text Notifications in Nagios XI

Re: Notifications not working

Posted: Tue May 12, 2020 8:57 pm
by ncmpoli
Hi there, I PMd you the profile and the messages that I'm getting after sending test emails. None of the emails made it through, including the custom notification.

Re: Notifications not working

Posted: Wed May 13, 2020 10:52 am
by benjaminsmith
Hello @ncmpoli,

Thanks for sending over the system profile. It looks you have email settings configured for an SMPT server. The notifications events are shown in the nagios.log, but there's nothing in the phpmailer log. So, let's verify that logging is enabled and check the user notification preferences.

1. Let's make sure the text messages are enabled for the user account (MPolifrone and nagiosadmin). Log into XI for the user, and click on the name in the upper right-hand menu and find the Notification Options in the left-hand sidebar.

Verify that text and email messages are enabled for the user account.
notification-methods.png
And verify the alert types are enabled.
verify-txt-preferences.png
2. Go to Admin > System Config > Email Settings and enable logging for PHPmailer.
php-mailer-loggin.png
Run the following tail command and send a text notification to make sure it is logging. Next, try sending another custom notification, and post the full output of the tail command below or send over a fresh system profile.

Code: Select all

tail -f /usr/local/nagiosxi/tmp/phpmailer.log
Benjamin

Re: Notifications not working

Posted: Wed May 13, 2020 11:29 am
by ncmpoli
Hi Benjamin,

Email messages are enabled but I can't enable text messages since it asks me to verify my mobile number. I sent a text to verify my number but I never received the verification key. I did this multiple times and still nothing came through.

Alert types are enabled for both, email and mobile text.

I also enabled logging for PHPmailer and PMd you the fresh system profile.

Thanks

Re: Notifications not working

Posted: Wed May 13, 2020 2:34 pm
by benjaminsmith
Hi @ncmpoli,

Let's try to get the email resolved and then move to over to the SMS settings. I sent you a PM of the full error message, it looks like the outlook is not accepting the messages as the sending email address is not a connected account.
SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;
References:
https://social.technet.microsoft.com/Fo ... ginglegacy
https://stackoverflow.com/questions/400 ... ndasdenied

Re: Notifications not working

Posted: Wed May 13, 2020 2:40 pm
by benjaminsmith
HI,

Also, since you are on a trial, you have access to a free 1 hour QuickStart session to help you get this working. You can sign up on the following page:

https://www.nagios.com/services/quickstart/

Re: Notifications not working

Posted: Thu May 14, 2020 12:52 pm
by benjaminsmith
Hi,

Thanks for the sending the profile, still seeing a connection issue with the external SMTP server:

Code: Select all

[05-13-2020 12:58:56] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Please follow the steps in the guide below to enabled debugging, send a test email message, and post a screenshot of the output.
PHPMailer - Troubleshooting Using Debug Logging

Also, do you have another email account you can use to test the notifications against? This would help us isolate the issue better, for example settings or authentication.