Page 1 of 1
Notification issue
Posted: Tue Apr 28, 2020 8:44 am
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
Re: Notification issue
Posted: Tue Apr 28, 2020 3:20 pm
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
Re: Notification issue
Posted: Wed Apr 29, 2020 2:21 am
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
Re: Notification issue
Posted: Wed Apr 29, 2020 4:19 pm
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.
Re: Notification issue
Posted: Thu Apr 30, 2020 2:58 am
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.
Re: Notification issue
Posted: Thu Apr 30, 2020 10:47 am
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
Re: Notification issue
Posted: Mon May 04, 2020 2:27 am
by ottow
Ticket 475369 has been opened.
Re: Notification issue
Posted: Mon May 04, 2020 9:33 am
by ssax
Locking thread, ticket received, we will continue support through the ticket.
Thank you