Apologies. 3.something...
I can include hostgroups in another hostgroup, I just cannot disinclude
them with a "!", or so it would seem.
As a future feature request, I have two suggestions.
First, is the disinclusion of hostgroups from another hostgroup. This
is already done in service definitions, so the code already must exist.
The other is the ability to have empty hostgroups without complaint,
perhaps without warning. It allows for planning ahead and completion of
concepts.
Thanks,
Dale
Morris, Patrick wrote:
> On Tue, 14 Jul 2009, Mark Gius wrote:
>
>
>> Morris, Patrick wrote:
>>
>> Hi Dale!
>>
>> On Tue, 14 Jul 2009, Dale J. Chatham wrote:
>>
>>
>>
>> I don't seem to be able to do this:
>>
>> # vim:ts=4:ai:expandtabs
>> #
>> #
>> define hostgroup {
>> hostgroup_name all-hst
>> alias all-hst
>> members *
>> }
>>
>> # vim:ts=4:ai:expandtabs
>> #
>> #
>> define hostgroup {
>> hostgroup_name basic_svc_snmp-svc
>> alias basic_svc_snmp-svc
>> hostgroup_members all-hst,!basic_svc_ns-svc
>> }
>>
>> If it is not possible at this point, I'd like to suggest it as a
>> somewhat obvious extension to hostgroup definitions.
>>
>>
>>
>> It's not possible now -- members of hostgroups need to be hosts, and
>> can't be other hostgroups.
>>
>>
>> According to
>> http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#hostgroup, you
>> can have "sub" hostgroups. So in theory he should be able to specify a
>> hostgroup that contains every host, subtracting another group.
>>
>
> Well, I just learned something. That definitely isn't doable in Nagios
> 2.x (you didn't mention which version you were using, so I was going
> based on what was in front of me at the time).
>
--
Dale J. Chatham
[email protected]
_.oo.
_.u[[/;:,. .odMMMMMM'
.o888UU[[[/;:-. ....@p^ MMM^
oN88888UU[[[/;::-. dP^
dNMMNN888UU[[[/;:--. ....@p^
,MMMMMMN888UU[[/;::-. o...@^
NNMMMNN888UU[[[/~...@p^
888888888UU[[[/o...@^-..
oI8888UU[[[/o...@p^:--..
....@^ YUU[[[/o...@^;::---..
oMP ^/o...@p^;:::---..
.dMMM ....@^ ^;::---...
dmmmm...@^` `^^^^
YMMMUP^
^^
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
[email protected]
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