Checking a service on all hosts _except_...
jeff vier
boinger at tradingtechnologies.com
Tue Oct 18 15:58:57 CEST 2005
On Tue, 2005-10-18 at 07:41 -0400, Ian Marlier wrote:
> >> I'm wondering whether it's possible to define a hostgroup (say,
> >> "windows-servers") with the non-linux boxes listed, and then define a
> >> service check for all hosts except those.
<snip>
> > define service {
> > service_description SSH
> > host_name *
> > hostgroup_name !windows-servers
> > check_command check_ssh
> > }
> >
> > I think that should work. If it doesn't you can always do it the other
> > way around and create a hostgroup with everything but the
> > windows-servers in them.
>
> Hmmm....that doesn't seem to work, unfortunately, because that would be a
> very nice solution...
>
> I know that I can create the hostgroup -- since I have so few machines that
> run windows (and it's a number that's going to get smaller), I'm just hoping
> to avoid having to maintain an "all but 5 machines" type of group...
What version of Nagios are you using?
I don't think the ! syntax came until 2.x
-------------- 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/20051018/5d212584/attachment.sig>
More information about the Users
mailing list