Page 2 of 3

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 12:15 am
by jamesc23
Files attached for the first section. I couldn't find the disk icon for the contacts under alerting.

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 1:31 am
by Box293
Along the top menu click Configure
Click Core Configuration Manager
In the left pane under Alerting click Contacts
Here is a list of contacts.
In the Actions column there are five icons.
Click the third icon that looks like a disk
Now you have the text definitions.
Paste the two contact definitions here that match the user accounts you provided screenshots of.

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 1:46 am
by jamesc23
That's the problem. I only have 4 icons. I have everything else but the the disk icon.

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 9:12 am
by tmcdonald
What XI version are you on? You seem to be running a *very* old system judging by the look of your CCM. Are you using the Legacy CCM option, or is that the default?

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 8:36 pm
by jamesc23
I think we're on Nagios XI 2011R1.6

How can I tell whether we're using legacy CCM option or a default one?

Thanks.

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 10:11 pm
by Box293
jamesc23 wrote:How can I tell whether we're using legacy CCM option or a default one?
Based on your version I suspect it's the legacy.

Have a look in the file /usr/local/nagios/etc/contacts.cfg and you'll find the two contacts I need you to paste here.

Re: Unexpected Notification Behavior

Posted: Tue Sep 08, 2015 11:08 pm
by jamesc23
define contact {
contact_name n_jchaiwon
alias James Chaiwon
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period n_jchaiwon_notification_times
service_notification_period n_jchaiwon_notification_times
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}

define contact {
contact_name svcn_sms_l3
alias Service Account
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period svcn_sms_l3_notification_times
service_notification_period svcn_sms_l3_notification_times
host_notification_options d,r
service_notification_options c,r
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}

Re: Unexpected Notification Behavior

Posted: Wed Sep 09, 2015 12:42 pm
by lmiltchev
Can you also post the following?

1. The contact definition of "n_testuser" contact.
2. /usr/local/nagios/etc/contacttemplates.cfg
3. /usr/local/nagios/etc/commands.cfg

Re: Unexpected Notification Behavior

Posted: Wed Sep 09, 2015 7:57 pm
by jamesc23
1.

define contact {
contact_name n_testUser
alias TestUser Account
host_notification_period n_testUser_notification_times
service_notification_period n_testUser_notification_times
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}

2.

###############################################################################
#
# Contacttemplate configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2015-09-09 11:24:31
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define contact {
name generic-contact
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
register 0
}

define contact {
name xi_contact_generic
contactgroups xi_contactgroup_all
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
register 0
}

###############################################################################
#
# Contacttemplate configuration file
#
# END OF FILE
#
###############################################################################

3. See attached

Re: Unexpected Notification Behavior

Posted: Wed Sep 09, 2015 10:55 pm
by Box293
I need to check one more thing. Can you please provide the host object. It will be in /usr/local/nagios/etc/hosts/ and it will be named your_host_name.cfg

I think I know what is going on but I need to see your config to confirm it.