Issue sending alerts to contacts
Issue sending alerts to contacts
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue sending alerts to contacts
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?
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
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue sending alerts to contacts
In the CCM -> Contacts does the Contact Name match his username exactly?mbowden wrote:He definitely has an enabled contact under CCM Alerting Contacts
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
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....
if I go to CCM --> Contact --> select contact Alert Settings, nothing is assigned under "Manage Host Notification Commands" or Manage Service....
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue sending alerts to contacts
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
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
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
}
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
}
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue sending alerts to contacts
This
should be
also, can you confirm that the user has logged in and accepted the TOS?
Code: Select all
host_notification_commands xi_host_notification_handler,xi_service_notification_handler
service_notification_commands xi_host_notification_handler,xi_service_notification_handlerCode: Select all
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handlerRe: Issue sending alerts to contacts
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
}
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
}
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue sending alerts to contacts
After doing this do you still get thismbowden wrote:I logged in using his username/password and accepted the EULA
Still no go,
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