FW: Monitoring service for every machine in hostgroupEXCEPT ONE

Wheeler, JF (Jonathan) J.F.Wheeler at rl.ac.uk
Tue Jul 24 11:54:18 CEST 2007


-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net On Behalf Of Kelly
Jones
Sent: 23 July 2007 02:55

I did not see any reply to this message, so here is my effort:

> I've created a hostgroup of 20 machines, and want to monitor 10
> services on each machine (easy). I now want to monitor an 11th service
> on 19 of the 20 machines. What's the best way to do this?
>
> Two ugly ways I don't like:
>
> % Create a separate hostgroup for the 19 machines I do want to
monitor.
>
> % Monitor the service on all 20 machines, but schedule infinite
> downtime for the service on the 20th machine.
>
> Is there a better way?

Yes.  In the configuration for the service, use an entry like this:

define service{
	use			generic-service	# From a template
or add other options
	hostgroup_name	mygroup		# Group of 20 machines
	hosts			!nothisone		# Machine not to
be tested (note the !)
	contact_groups	us			# 
}

Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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