Page 1 of 1

Exclusion Problem

Posted: Fri Dec 11, 2015 3:15 pm
by crapplet
I am having issues with exclusions of a service for a host group on Nagios Core 3.5.

Exclusion hostgroup object

Code: Select all

define hostgroup{
		hostgroup_name	exclude_FS_CHECK
		members			WIN_SERVER
} 
service object

Code: Select all

define service{
		use							6h-service
		hostgroup_name				WIN_CHECK,!exclude_FS_CHECK
		check_command				check_nrpe!130!check_win
		notification_options		                c,w
}
Error: Could not expand hostgroups and/or hosts specified in service

Any help is appreciated

Re: Exclusion Problem

Posted: Mon Dec 14, 2015 1:50 am
by Box293
Your hostgroup definition does not have an alias, and the documentation states that this is required.

https://assets.nagios.com/downloads/nag ... #hostgroup

Can you also post the template definition for "6h-service"