Multiple hosts/services in services.cfg?

Quanah Gibson-Mount quanah at stanford.edu
Thu Dec 4 00:50:10 CET 2003



--On Thursday, December 04, 2003 10:33 AM +1100 Patrick Webster 
<pwebster at ausgeo.com.au> wrote:

>> Yes, it is undocumented, but you can use:
>> hostgroup_name  <groupname>
>
> Ok thanks guys.
>
> Do you know if this will work (multiple checks in one) in the service
> definition? I tried it once without success.
>
>         check_command                   check-nt-cpuload
>         check_command                   check-nt-memuse
>         check_command                   check-nt-disk
>         check_command                   check-nt-uptime
>
> Perhaps you can do;
> 	  check_command			   check1,check2,check3
>
> ??
>
> Thanks again.

I don't believe so.  I set up a service template, and then just have:

define service {
use              ldap-generic-service
service_description LDAP bind check
check_command    check_ldap
}

etc... That way I only have to change the template (ldap-generic-service). 
>From what I can tell, *each* check needs its own service description 
(otherwise you can't set up service dependencies).

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/TSS/Computing Systems
ITSS/TSS/Infrastructure Operations
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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