Wildcard Host Negation

jeff vier boinger at tradingtechnologies.com
Thu Jan 12 22:12:22 CET 2006


On Thu, 2006-01-12 at 15:50 -0500, Patrick Rutkowski wrote:
> I have a service in services.cfg to ping all hosts:
> 
> define service {
>         use  generic-ping
>         host_name       *
> }
> 
> This makes life a lot easer when I add new hosts, which is often.
> However, some hosts do not respond to pings, and this is expected. Is
> there a way that I can tell nagios to "ping all hosts, but not hosts
> x, y, and z"

host_name	*,!server-x,!server-y,!server-z

This works in 2.x only, I believe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060112/e6cf5f0f/attachment.sig>


More information about the Users mailing list