Page 1 of 2

Issue sending alerts to contacts

Posted: Tue Mar 27, 2018 1:17 pm
by mbowden
Nagios XI Issue
We have an interesting issue where when we create a new user and assigning it either through a Contact Group or directly on a host through the Alerts Settings Tab. The user does not get alerted during a failure. We have tried re-writing config files, upgraded to the latest version, recreating the user. Any help would be appreciated.

Re: Issue sending alerts to contacts

Posted: Tue Mar 27, 2018 1:20 pm
by scottwilkerson
Are you first creating the user through Admin -> Users?

Has the user logged in to the UI and setup their Notification preferences to turn on notifications and selected the types they want to receive?

Re: Issue sending alerts to contacts

Posted: Wed Mar 28, 2018 1:57 pm
by mbowden
That's how I created the user yet when I masquerade as the new user and attempt to change the monitoring I receive the following.

Notification Preferences
Management of notification preferences is not available because your account is not configured to be a monitoring contact. Contact your Nagios XI administrator for details

He definitely has an enabled contact under CCM Alerting Contacts

Re: Issue sending alerts to contacts

Posted: Wed Mar 28, 2018 2:36 pm
by scottwilkerson
mbowden wrote:He definitely has an enabled contact under CCM Alerting Contacts
In the CCM -> Contacts does the Contact Name match his username exactly?
If you edit the contact and click the "Alert Settings" Tab
What is listed under
Manage Host Notification Commands &
Manage Service Notification Commands ??

also, had the user logged in besides your masquerading? I ask because they aren't fully setup until they login with a username/password and accept the TOS

Re: Issue sending alerts to contacts

Posted: Wed Mar 28, 2018 3:26 pm
by mbowden
I just deleted the user and recreated the user, Admin -> Add new User -> Create as Monitoring Contact selected,

if I go to CCM --> Contact --> select contact Alert Settings, nothing is assigned under "Manage Host Notification Commands" or Manage Service....

Re: Issue sending alerts to contacts

Posted: Wed Mar 28, 2018 3:32 pm
by scottwilkerson
It it already exists I don't believe it would be modified, you want
xi_host_notification_handler &
xi_service_notification_handler


respectively

Also on Common Setting Tab you should have xi_contact_generic template applied

and then Save and apply configuration

Re: Issue sending alerts to contacts

Posted: Thu Mar 29, 2018 8:04 am
by mbowden
Those settings are in place and he still is not receiving alerts,

define contact {
contact_name bbises
alias Brett Bises
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period bbises_notification_times
service_notification_period bbises_notification_times
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
host_notification_commands xi_host_notification_handler,xi_service_notification_handler
service_notification_commands xi_host_notification_handler,xi_service_notification_handler
email [email protected]
use xi_contact_generic
}


define contactgroup {
contactgroup_name Ecosystem Alert Group
alias Ecosystem Alert Group
members bbises }



define host {
host_name s-degwks-a.bowdoin.edu
use basic_linux_server_host_template
alias s-degwks-a.bowdoin.edu
display_name s-degwks-a.bowdoin.edu
address s-degwks-a.bowdoin.edu
hostgroups Basic Linux Hosts
check_command check-host-alive!!!!!!!!
contact_groups Ecosystem Alert Group
icon_image redhat.png
statusmap_image redhat.png
_xiwizard linux-server
register 1
}

Re: Issue sending alerts to contacts

Posted: Thu Mar 29, 2018 9:01 am
by scottwilkerson
This

Code: Select all

host_notification_commands xi_host_notification_handler,xi_service_notification_handler
service_notification_commands xi_host_notification_handler,xi_service_notification_handler
should be

Code: Select all

host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
also, can you confirm that the user has logged in and accepted the TOS?

Re: Issue sending alerts to contacts

Posted: Thu Mar 29, 2018 11:10 am
by mbowden
I logged in using his username/password and accepted the EULA
Still no go,

define contact {
contact_name bbises
alias Brett Bises
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period bbisesti_notification_times
service_notification_period bbisesti_notification_times
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
email [email protected]
use xi_contact_generic
}

Re: Issue sending alerts to contacts

Posted: Thu Mar 29, 2018 11:49 am
by scottwilkerson
mbowden wrote:I logged in using his username/password and accepted the EULA
Still no go,
After doing this do you still get this
mbowden wrote:Notification Preferences
Management of notification preferences is not available because your account is not configured to be a monitoring contact. Contact your Nagios XI administrator for details

He definitely has an enabled contact under CCM Alerting Contacts