Problem with excluding hostgroups?

Dariusz Ankowski dosiu at wp-sa.pl
Thu Mar 8 19:14:05 CET 2007


Hello,

Here you can see short outline of my configuration of hosts,  
hostgroups and services:

#v+

define host {
	use host-template-a
	hostgroups hostgroup-a
	hostname server-a
	alias server-a
}

define host {
	use host-template-b
	hostgroups hostgroup-b
	hostname server-b
	alias server-b
}

define host {
	use host-template-c
	hostgroups hostgroup-c
	hostname server-c
	alias server-c
}

define hostgroup {
	hostgroup_name hostgroup-a
	alias hostgroup-a
}

define hostgroup {
	hostgroup_name hostgroup-b
	alias hostgroup-b
}

define hostgroup {
	hostgroup_name hostgroup-c
	alias hostgroup-c
}

define hostgroup {
	hostgroup_name hostgroup-all
	alias hostgroup-all
	hostgroup_members hostgroup-a,hostgroup-b,hostgroup-c
}

define service {
	use service-template
	hostgroup_name hostgroup-all,!hostgroup-c
	service_description Service test
	check_command test_command
}
#v-

What I need to do is running "Service test" for all hosts from  
"hostgroup-all", excluding hosts belonging to "hostgroup-c".  But  
when I start Nagios and use configuration listed above I see that  
"Service test" is running for all hosts including those from  
"hostgroup-c".

Would you be so kind and tell me if I have made any mistake in  
configuration or there is any bug related to excluding groups?

-- 
Pozdrawiam,
Dariusz Ankowski

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list