Problem with excluding hostgroups?

Lacayo, Luis F lflacayo at cps.k12.il.us
Thu Mar 8 23:02:43 CET 2007


I am not sure but in your hostgroup definitions you need to add members.

Luis

Luis Lacayo
Sr. UNIX Admin
Chicago Public Schools
Office of Technology Services
125 S. Clark Street - Suite 300
Chicago, IL 60603
Direct:773-553-3835
Office: 773-553-1300
FAX:773-553-1363
lflacayo at cps.k12.il.us
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Dariusz
Ankowski
Sent: Thursday, March 08, 2007 12:14 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Problem with excluding hostgroups?


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=DEVDE
V
_______________________________________________
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

-------------------------------------------------------------------------
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