It seems that the documentation
(http://docs.icinga.org/latest/en/objecttricks.html) doesn't indicate
that excluding objects is valid for hostgroups.
Try to define a service similar to your groupC:
define service{
use local-service
service_description your_service
hostgroups groupA,!groupB
....
}
create objects.precache and check if "your_service" is defined for the
hosts in the intended hostgroups.
Am 16.05.2012 19:31, schrieb Lori Adams:
I changed my config slightly to really show what I'm trying to do by
putting foo2 in groupA.
define hostgroup {
hostgroup_name groupA
}
define hostgroup {
hostgroup_name groupB
}
define host {
use generic-host
host_name foo
address 127.0.0.1
hostgroups groupA
}
define host {
use generic-host
host_name foo2
address 127.0.0.1
hostgroups groupB,groupA
}
define hostgroup {
hostgroup_name groupC
hostgroup_members groupA,!groupB
}
So the end result that I wanted would be that groupC has the members: foo.
My objects.precache file does not show that.
define hostgroup {
hostgroup_name groupA
members foo,foo2
}
define hostgroup {
hostgroup_name groupB
members foo2
}
define hostgroup {
hostgroup_name groupC
members foo,foo2
}
So no, the hostgroup does not contain the members that I expect.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users