patch: hostgroups wildcard and negation
Ethan Galstad
nagios at nagios.org
Thu Mar 25 01:54:36 CET 2004
Thanks - Not sure why I didn't originally include this. I'll add
similar functionality for servicegroup matching as well.
On 24 Mar 2004 at 13:36, Matthew Kent wrote:
> This small patch is mainly to make negation (thank you for this very
> handy feature :)) in hostgroup_name definitions more useful.
>
> It allows for these small/lazy definitions to be formed like so:
>
> define service {
> use service-critical
> hostgroup_name *,!remote,!tunnel
> service_description PING
> check_command check_fping!50.0,0%!100.0,25%
> }
>
> define service{
> use service-noncritical
> hostgroup_name remote,tunnel
> service_description PING
> check_command check_fping!500.0,0%!10000.0,60%
> }
>
> Handy if you have many hostgroups defined.
>
> Diff'ed against rev 1.71
>
> Thoughts?
>
> Matthew Kent \ SA \ bravenet.com \ 1-250-954-3203 ext 108
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
More information about the Developers
mailing list