Notifications to contacts not working after upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Notifications to contacts not working after upgrade

Post by sujitt »

Nagios is not sending any notifications to any contacts who is not a user.

I see a message in the /usr/local/nagiosxi/var/eventman.log
Could not find user_id for contact.

I am on
Nagios XI Version : 5.4.13
gaatlp82u.priv.aglrsc.com 3.10.0-693.17.1.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.4 (Maipo)
Gnome is not installed


Thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Notifications to contacts not working after upgrade

Post by npolovenko »

@sujitt, Please check the notification commands for this contact. Are you using xi_host_notification_handler and xi_service_notification_handler? If so please replace them with notify-host-by-email and notify-service-by-email. Notification_handler commands do require contacts to have user accounts.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: Notifications to contacts not working after upgrade

Post by sujitt »

Here is how I have it
I have modified the xi_contact_generic template as follows

1. for Host Notification commands I have
notify-host-by-email
xi_host_notification_handler
and
2. for service Notification commands I have

notify-service-by-email
xi_service_notification_handler
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Notifications to contacts not working after upgrade

Post by npolovenko »

@sujitt, I do not recommend having both notification commands at the same time. If both commands fire at the same time you will receive a notification 2 times. Under generic template leave only xi_host_notification_handler and xi_service_notification_handler. And for the contact that is not working manually select notify-host-by-email and notify-service-by-email.
However, if you're using SMTP to send notification emails, notify-host/service-by-email will not work, so your only option would be to create a user.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: Notifications to contacts not working after upgrade

Post by sujitt »

Can I configure both SMTP and sendmail ?
sujitt
Posts: 132
Joined: Thu Apr 25, 2013 1:50 pm

Re: Notifications to contacts not working after upgrade

Post by sujitt »

Is there a way to convert contacts to users in bulk ?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Notifications to contacts not working after upgrade

Post by npolovenko »

@sujitt
Is there a way to convert contacts to users in bulk?
Unfortunately, no.
Can I configure both SMTP and sendmail ?
You can. For contacts that do not have corresponding users, select the following notification commands -> {notify-host-by-email} and {notify-service-by-email}. This will force XI to use the sendmail script instead of SMTP.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked