Page 1 of 2

Nagios is sending alert notification to the unselected group

Posted: Tue Aug 11, 2015 1:04 am
by dbsaust
Hi Everybody,
We have created alerts through Nagios XI but group is not selected in the Notification section but still unselected group is receiving emails/sms.

Could you please advise if you are aware of such issues. Do we need to check some config file, does it contain notification contacts?

Thanks
Rashmi

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 1:10 am
by Box293
Are you talking about a service object or a host object?

If it is a service object, does the service have any contact groups assigned to it? Does the host have any contact groups assigned to it.

Can you please look in the file /usr/local/nagios/var/objects.cache and find the host and/or service definitions and paste them here.

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 7:32 pm
by dbsaust
Hi there,
I am talking about Service object, in service alerts we haven't selected groups but we are getting alerts but we have selected groups at the host level object.

For example,
I have a host called TEST1
and there are many services associated with host TEST1
for example : Monitor ABC Folder..
We haven't selected group for Monitor ABC Folder but we have selected group for TEST1.
We have selected many groups at TEST1.

But we don't want to send service alerts to unwanted group.

I will try to find objects.cache file

Thanks.

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 7:45 pm
by dbsaust
Hi there,
I was able to find definition in the txt config file from Nagios XI core config manager, I hope this is what you need.

Code: Select all

define service {
	host_name			SYDNAS1
	service_description		Monitor WERNER Invoice Processing
	display_name			Monitor WERNER Invoice Processing
	check_command			check_nrpe_directory_2!check_filename_age.pl!'\\sydnas1\SchenkerEDI\MCWMS1_MSG\MCP07\INVOICE\WERNER\ SKIP pdf 3600'!!!!!!
	initial_state			o
	max_check_attempts		2
	check_interval			60
	retry_interval			15
	active_checks_enabled		1
	check_period			8am-6pm_weekdays
	notification_interval		60
	notification_period		8am-6pm_weekdays
	notification_options		w,c,u,
	notifications_enabled		1
	contact_groups			Multi-Client
	register			1
	}





define host {
	host_name			SYDNAS1
	use				xiwizard_windowsserver_host
	address				10.215.222.102
	hostgroups			Infrastructure
	max_check_attempts		3
	check_interval			5
	retry_interval			2
	check_period			24x7
	contacts			dellunix,dellwintel
	contact_groups			aunzff-supportteam,Dell,Freight-Forward,HP,Infrastructure,Multi-Client
	notification_interval		180
	notification_period		24x7
	first_notification_delay	0
	notification_options		d,u,r,f,s
	notifications_enabled		1
	icon_image			win_server.png
	statusmap_image			win_server.png
	_xiwizard			windowsserver
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 8:33 pm
by Box293
So the behaviour of Nagios is that things like contacts and contact groups defined on the host get inherited by the services.

https://assets.nagios.com/downloads/nag ... tance.html

If you have a service that you don't want inheritance to apply, then you can do the following:
CCM
Edit Service
Alert Settings tab
Click Manage Contact Groups
For the Contactgroup options radio select "standard".

Save and apply configuration.
You can test this by sending a custom notification from the service.

Does this fix your problem?

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 11:00 pm
by dbsaust
Hi,
For the Contactgroup options radio select "standard"
We have already selected "standard".

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 11:09 pm
by Box293
Hmm I've done some more reading and I found this thread:

https://support.nagios.com/forum/viewto ... 750#p76073
Contacts on a host will *always* be contacts for that host's services except when a contact is defined on the service object itself.
I'm thinking that instead you could create an empty contact group called "No Contacts" and assign that to the service, this should then override the inheritance.

I might need the USA techs to chime in on this tomorrow to see if they have any other information on this.

Re: Nagios is sending alert notification to the unselected g

Posted: Tue Aug 11, 2015 11:16 pm
by dbsaust
We have selected contact group in the services but still it is picking from Host level contact group.
Please let me know if you have any other information.

Re: Nagios is sending alert notification to the unselected g

Posted: Wed Aug 12, 2015 12:57 am
by Box293
I would like to get a copy of your system profile so I can drill down into your configs.

Click the Admin menu
System Config > System Profile
Click the Download Profile button and PM me that file

Please do not upload it here as it contains sensitive information.

Otherwise please send an email to [email protected] referencing this post (only if you have paid support).

Re: Nagios is sending alert notification to the unselected g

Posted: Sun Aug 16, 2015 9:54 pm
by dbsaust
Hi,
Please let me know what you want to check, I can check Profile and send you the feedback.
Thank you so much for your help.

Regards
Rashmi