<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Marc Powell wrote:
<blockquote cite="mid:58A25989-F53E-41A2-91CD-EEF1DBFE594F@ena.com"
type="cite">
<pre wrap="">On Jul 14, 2009, at 2:26 PM, Morris, Patrick wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Dale!
On Tue, 14 Jul 2009, Dale J. Chatham wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">It's not possible now -- members of hostgroups need to be hosts, and
can't be other hostgroups.
</pre>
</blockquote>
<pre wrap=""><!---->
Actually, that's what the hostgroup_members directive is for. What's
in question is the regex matching of '!basic_svc' to exclude it and
whether that _should_work. I can find no specific example in the
documentation that indicates it should and am not in a position to
test it. My feeling is that it isn't supported there but I could be
wrong. If the OP gets no other bites, asking on nagios-devel might be
more useful in either case.
--
Marc</pre>
</blockquote>
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
(<a class="moz-txt-link-freetext" href="http://nagios.sourceforge.net/docs/3_0/objecttricks.html">http://nagios.sourceforge.net/docs/3_0/objecttricks.html</a>).<br>
<br>
define serviceescalation {<br>
name escalation<br>
register 0<br>
<br>
servicegroup_name *,!notify-web<br>
escalation_period 24x7<br>
escalation_options c,u,r<br>
}<br>
<br>
<br>
-Gius<br>
</body>
</html>