Skip certain hosts in a hostgroup when defining services for hostgroups?
Rutger Blom
rutger at blokje.net
Tue Sep 28 12:02:13 CEST 2010
Just add a line to the service definition:
"host_name !*yourhost*"
to exclude it from the check.
Rutger
2010/9/28 Simon Dehne <dehne at tfd.uni-hannover.de>
> 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.
> ::: Mess
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100928/15ab63cc/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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