<div><br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 11:44 AM, Sean McAfee <span dir="ltr"><<a href="mailto:smcafee@collaborativefusion.com">smcafee@collaborativefusion.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Edward Trochim wrote:<br>
<br>
> And a service definition like this. I want to exclude hostgroup5 from<br>
> this one service definition:<br>
><br>
> define service{<br>
> use standard-check<br>
> hostgroup_name !hostgroup5<br>
> service_description Disk Space<br>
> }<br>
><br>
> Instead of doing what I want this excludes every hostgroup defined in<br>
> the template. host1 still gets the service though.<br>
><br>
> I am currently running nagios version 3.0.6.<br>
><br>
> Is this a bug in nagios or am I misunderstanding the way this should<br>
> behave?<br>
<br>
</div>I believe you're just missing the magic "+" that indicates additive<br>
inheritance instead of making it override.<br>
<br>
Try:<br>
<div class="im"><br>
define service{<br>
use standard-check<br>
hostgroup_name +!hostgroup5<br>
service_description Disk Space<br>
}<br>
<br>
</div><font color="#888888">--<br>
Sean McAfee<br>
System Engineer<br>
</font><div><div></div><div class="h5"></div></div></blockquote>Sean is right. Otherwise, you're REDEFINING the hostgroup_name directive.<div> </div></div>-- <br>Gary Every<br>"Pay it Forward!"<br><br>
</div>