Hostgtroup question
Marc Powell
marc at ena.com
Tue Jul 14 23:33:16 CEST 2009
On Jul 14, 2009, at 3:45 PM, Mark Gius wrote:
> This syntax works for me in service escalations (service and host
> groups), as well as service definitions. I've not tried it in
> hostgroups however. The behavior is sort of defined here (http://nagios.sourceforge.net/docs/3_0/objecttricks.html
> ).
Yup, and those are specifically documented. What gives me doubt is
this from the same page --
"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.
--
Marc
------------------------------------------------------------------------------
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