Just add a line to the service definition:
"host_name !*yourhost*"
to exclude it from the check.
Rutger
2010/9/28 Simon Dehne <[email protected]>
> 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: [email protected]
>
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Mess
------------------------------------------------------------------------------
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
[email protected]
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