Notification issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ottow
Posts: 44
Joined: Wed Nov 15, 2017 3:45 am

Notification issue

Post by ottow »

Hi,

I am afraid I have a issue with notifications, and none of the tips in the forum threads I am finding is helping.

All users are added as Users, not Contacts (imported from Active Directory)
All users have the default, unmodified xi_contact_generic Contact Template set
All users have notifications enabled under their accounts
Test e-mail works
I can see the Notification firing on the Service/Host from the Notifications view, Dispatcher is "Nagios XI", and also in /usr/local/nagios/var/nagios.log
However, /var/log/maillog does _not_ show any e-mail being sent, and nothing is received at the user's end.

If I hard-code Host Notification and Service Notification Commands on the Contact to use notify-host-by-email and notify-service-by-email, notifications start working

I've tried creating a new local user to test with, but that makes no difference. It appears the xi_ notification handlers can't process my Users for some reason.

XI version is 5.6.12, installed from source on RHEL 7.8
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Notification issue

Post by jbrunkow »

Can you please attach a screenshot of your Email Settings? Navigate to the Admin section using the navigation bar near the top > then click Email Settings under the System Config section on the left pane > and screenshot that page.

Can you please send me your system profile as well? You can download it by navigating to the Admin section > then click System Profile under System Config > and click the Download Profile button on that page.

Nagios could be putting email logs in one of two places depending on how it was configured. Something like the following command would display both of them.

Code: Select all

tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log
For more information on the subject of mailing from Nagios, please refer to the following linked documentation.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... Mailer.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ottow
Posts: 44
Joined: Wed Nov 15, 2017 3:45 am

Re: Notification issue

Post by ottow »

Screenshot and profile.zip uploaded.
It makes no difference if I set it to use Sendmail or SMTP, the alert e-mails are not sent out.

None of the logs show any indication of any Alert e-mails being sent. However, if I trigger a Test e-mail from email settings, I can see it being processed.


Moderator's Note: The profile has been shared with the support team but has been removed from the public forum
You do not have the required permissions to view the files attached to this post.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Notification issue

Post by jbrunkow »

It appears ( from your nagios.log ) that the cause may be a timeout. Could you please also try testing it with another email address? Perhaps it is taking too long to connect.

Code: Select all

SERVICE NOTIFICATION: nagiosadmin;emea-got-internetsw;SNMP Uptime v2c;CRITICAL;xi_service_notification_handler;CRITICAL - Plugin timed out while executing system call
I am sorry that I was not more clear about the output that I was looking for. Can you please perform the following steps to capture some information that will likely prove useful?
1. Run the following command from a terminal on your machine hosting Nagios XI.

Code: Select all

tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log
2. Navigate to Nagios XI in a web browser > then go to Home > Service Status > find the Service and click on it > click the + tab > click the Submit passive check result link until the state changes to a hard, non-OK state to force a notification.
3. After you have run the test with the terminal spitting logs out, you can hit Ctrl + C to stop the command from running > finally, copy the output and post it in this thread. That information will likely give us the information we need to see why it is failing.

Is your email server responding to any kind of traffic? You may want to try clicking Ping this host on the Host (or) Service Status Detail page just to see if it is responding.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ottow
Posts: 44
Joined: Wed Nov 15, 2017 3:45 am

Re: Notification issue

Post by ottow »

The timeout error appears to be the SNMP check output, not related to the event handler. See the picture below. The check work fine on all other switches, we are simply using this one as a convenient test of alerts.

I've run the capture you requested, please find the log attached.
FYI, the service I forced to Critical was Ping on the host emea-got-internetsw
I can't see any evidence in the output of Nagios trying to send any alert e-mails...

Concerning the e-mail server, it is working just fine and is pingable from the NagiosXI host.
As mentioned before, if I trigger a test e-mail from Admin/System Config/Email Settings the test e-mail is sent and recived as expected.

It appears to me this is an issue with the xi_host_notification_handler and xi_service_notification_handler, and the User<->Contact relationship.
If I switch a contact to use notify-host-by-email and notify-service-by-email, alerting starts working.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Notification issue

Post by benjaminsmith »

Hi @ottow,

Thank you for your patience on this, let's move this over to support ticket for faster resolution. To open a ticket, go to:

https://support.nagios.com/tickets/

Please reference this support thread in the ticket.

Also, the logs are showing that this installation is not activated.
ERROR: License is not activated.
.............
Please try to re-activate this license before opening the support ticket. If you need any help with that please reach out to [email protected]

Nagios XI Activation
https://assets.nagios.com/downloads/nag ... vation.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ottow
Posts: 44
Joined: Wed Nov 15, 2017 3:45 am

Re: Notification issue

Post by ottow »

Ticket 475369 has been opened.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification issue

Post by ssax »

Locking thread, ticket received, we will continue support through the ticket.

Thank you
Locked