patch: hostgroups wildcard and negation

Matthew Kent matt at bravenet.com
Wed Mar 24 22:36:47 CET 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-2.0a1-allhostgroups.patch
Type: application/octet-stream
Size: 1833 bytes
Desc: nagios-2.0a1-allhostgroups.patch
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20040324/702b0e17/attachment.obj>


More information about the Developers mailing list