Checking a service on all hosts _except_...
Marlier, Ian
ian.marlier at studentuniverse.com
Tue Oct 18 17:01:42 CEST 2005
> -----Original Message-----
> From: jeff vier [mailto:boinger at tradingtechnologies.com]
> Sent: Tuesday, October 18, 2005 9:59 AM
> To: Marlier, Ian
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Checking a service on all hosts
_except_...
>
> 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
Yup....time to upgrade, I think....
Fun!
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list