Hostgtroup question
Dale J. Chatham
dale at chatham.org
Wed Jul 15 14:26:18 CEST 2009
Thanks for verifying. It seems both a logical and an easy thing to do,
given it is done in service and serviceescalation definitions.
Is this a sufficient place to bring this to light?
Thanks,
Dale
Max wrote:
> On Tue, Jul 14, 2009 at 5:33 PM, Marc Powell<marc at ena.com> wrote:
>
>> "Regular expressions can be used in any of the fields used in the
>> examples below (host names, hostgroup names, service names, and
>> servicegroup names)".
>>
>> note that 'hostgroup_members names' is not specifically mentioned.
>>
>> Diving into the code, this appears to be handled around line 9154
>> (both above and below) of xodtemplate.c. I don't see any tests for
>> regexp_matches so I'm about 80% confident this just doesn't work for
>> hostgroup_members. My code reading-fu may be weak though. I am
>> assuming that the OP did have regexp matching enabled when testing.
>>
>
> Tested this to verify it, and you and Dale are correct, the parser
> does not understand '!' as a subtractive prefix for a group name in
> the hostgroup_members attribute of a hostgroup definition.
>
> - Max
>
> ------------------------------------------------------------------------------
> 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
> 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
>
--
Dale J. Chatham
dale at chatham.org
_.oo.
_.u[[/;:,. .odMMMMMM'
.o888UU[[[/;:-. .o at P^ MMM^
oN88888UU[[[/;::-. dP^
dNMMNN888UU[[[/;:--. .o at P^
,MMMMMMN888UU[[/;::-. o@^
NNMMMNN888UU[[[/~.o at P^
888888888UU[[[/o@^-..
oI8888UU[[[/o at P^:--..
.@^ YUU[[[/o@^;::---..
oMP ^/o at P^;:::---..
.dMMM .o@^ ^;::---...
dMMMMMMM@^` `^^^^
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
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