Page 1 of 1
Host/Service notification not working
Posted: Fri Nov 10, 2017 1:36 am
by DamienVIX
Hi,
My host and service notification are not working.
I have followed the following :
https://support.nagios.com/kb/article/n ... blems.html.
Test emails are working.
Emails that get sent when creating a new user and changing passwords also work.
Notifications get generated as I can see them under "Home-->Incident Management-->Notifications"
Custom notifications also appear here but do not get sent.
I am using SMTP to send the emails via Gmail.
Any help will be appreciated.
Thanks
Re: Host/Service notification not working
Posted: Fri Nov 10, 2017 4:50 am
by fuchstiger
I have the same problem. But already opened a support ticket.
They said there was a bug in the packaging.
Do you have redownloaded and reinstalled the latest version?
Re: Host/Service notification not working
Posted: Fri Nov 10, 2017 6:44 am
by DamienVIX
Jip. Downloaded xi-latsest.tar.gz.
Installed it, still not working.
Do you have a link to the support ticket you logged.
Thanks
Re: Host/Service notification not working
Posted: Fri Nov 10, 2017 10:38 am
by kyang
@DamienVIX,
Did you do a
./fullinstall or a .
/upgrade?
I do see the event handler error on your profile.zip.
Here's a few recent threads related to the same issue.
https://support.nagios.com/forum/viewto ... =6&t=46277
https://support.nagios.com/forum/viewto ... 16&t=46302
Code: Select all
<p><pre>SQL Error [nagiosxi] : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '16:06:00),NOW(),'0')' at line 1</pre></p>
With the same exact error.
Code: Select all
cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Make sure to do the
./upgrade when installing the new 5.4.11.
The same steps are listed in our documentation in the "Manual Download" section.
https://assets.nagios.com/downloads/nag ... 1510240405
Let us know if this is what you did or if it helped!
Re: Host/Service notification not working
Posted: Mon Nov 13, 2017 1:02 am
by DamienVIX
Yes,
I ran ./upgrade.
I have even installed version 5.4.9. There is still no emails being sent.
Thanks
Re: Host/Service notification not working
Posted: Mon Nov 13, 2017 1:29 am
by tacolover101
if this is the case, then they're probably turned off at a user level. masquerade as the user, and make sure that notifications are enabled on each profile.
Re: Host/Service notification not working
Posted: Mon Nov 13, 2017 7:31 am
by fuchstiger
DamienVIX wrote:
Do you have a link to the support ticket you logged.
I think the tickets are private. There is no way to publish it. But the problem is still there.
My problem is: Mails with the Nagios XI dispatcher does not work - mails with the custom dispather are still working.
I track it via the notifications site. I see only the ones in the log (/var/log/maillog) which were sent with the custom dispatcher.
Re: Host/Service notification not working
Posted: Mon Nov 13, 2017 12:15 pm
by kyang
Thanks
@tacolover101 and
@fuchstiger!
Along with the suggestions, I am seeing a lot of these logs.
Code: Select all
Nov 10 08:21:56 nagios nagios: SERVICE NOTIFICATION: carl;MTC;XMLErr;UNKNOWN;xi_service_notification_handler;No files found
Nov 10 08:21:56 nagios nagios: SERVICE NOTIFICATION: christo;MTC;XMLErr;UNKNOWN;xi_service_notification_handler;No files found
Nov 10 08:21:56 nagios nagios: SERVICE NOTIFICATION: damien;MTC;XMLErr;UNKNOWN;xi_service_notification_handler;No files found
Nov 10 08:22:07 nagios nagios: SERVICE NOTIFICATION: carl;MTC;TPV_In;UNKNOWN;xi_service_notification_handler;No files found
Nov 10 08:22:07 nagios nagios: SERVICE NOTIFICATION: christo;MTC;TPV_In;UNKNOWN;xi_service_notification_handler;No files found
Nov 10 08:22:07 nagios nagios: SERVICE NOTIFICATION: damien;MTC;TPV_In;UNKNOWN;xi_service_notification_handler;No files found
Could you run this and show us the output?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Host/Service notification not working
Posted: Thu Nov 16, 2017 1:11 am
by DamienVIX
tacolover101 wrote:if this is the case, then they're probably turned off at a user level. masquerade as the user, and make sure that notifications are enabled on each profile.
Winner winner chicken dinner.
I masqueraded as each user and checked the notification settings. They were all unchecked.
Thanks
Re: Host/Service notification not working
Posted: Thu Nov 16, 2017 10:02 am
by kyang
Awesome! Did you resolve this issue?
Are there any more questions or are we okay to close this thread?