Hostgtroup question

Max perldork at webwizarddesign.com
Tue Jul 14 23:54:56 CEST 2009


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





More information about the Users mailing list