Skip certain hosts in a hostgroup when defining services for hostgroups?
Simon Dehne
dehne at tfd.uni-hannover.de
Tue Sep 28 11:53:33 CEST 2010
Hi guys,
I have certain services that are checked for hostgroups, for example an
HD check. There are 12 PCs in that host group, and I'm checking
available space on two HDs for each PC.
There is one PC in that group however, that has only ONE HD instead of
two.
My config looks like this:
define service {
hostgroup_name linux-pool
service_description DISKSPACE home_local
check_command check_nrpe!check_home
use generic-service
}
define service {
hostgroup_name linux-pool
service_description DISKSPACE work_local
check_command check_nrpe!check_work
use generic-service
}
Where check_home and check_work are the commands, with which HD space is
checked (check_disk .. /sda1 and check_disk .../sda2).
Is there a simple way to exclude that one PC from the check instead of
having to define these checks for each PC in that group individually?
--
Simon Dehne
Institut für Turbomaschinen und Fluid-Dynamik (TFD)
Gottfried Wilhelm Leibniz Universität Hannover
Appelstr. 9
30167 Hannover
Tel.: +49 511/762-2753
web: http://www.tfd.uni-hannover.de
eMail: dehne at tfd.uni-hannover.de
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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