Host/Service notification not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DamienVIX
Posts: 5
Joined: Wed Nov 08, 2017 7:26 am

Host/Service notification not working

Post 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
You do not have the required permissions to view the files attached to this post.
fuchstiger
Posts: 22
Joined: Tue Apr 12, 2016 7:42 am

Re: Host/Service notification not working

Post 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?
DamienVIX
Posts: 5
Joined: Wed Nov 08, 2017 7:26 am

Re: Host/Service notification not working

Post 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
kyang

Re: Host/Service notification not working

Post 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!
DamienVIX
Posts: 5
Joined: Wed Nov 08, 2017 7:26 am

Re: Host/Service notification not working

Post by DamienVIX »

Yes,

I ran ./upgrade.

I have even installed version 5.4.9. There is still no emails being sent.

Thanks
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Host/Service notification not working

Post 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.
fuchstiger
Posts: 22
Joined: Tue Apr 12, 2016 7:42 am

Re: Host/Service notification not working

Post 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.
kyang

Re: Host/Service notification not working

Post 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
DamienVIX
Posts: 5
Joined: Wed Nov 08, 2017 7:26 am

Re: Host/Service notification not working

Post 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
kyang

Re: Host/Service notification not working

Post by kyang »

Awesome! Did you resolve this issue?

Are there any more questions or are we okay to close this thread?
Locked