Re: [Nagios-devel] patch: hostgroups wildcard and negation

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] patch: hostgroups wildcard and negation

Post by Guest »

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: [email protected]
Website: http://www.nagios.org






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked