template issues

Jason Martin jhmartin at toger.us
Wed Nov 5 17:48:45 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, I am having an issue with Nagios 1.1 when using some of the 
'template tricks'. Particularly, I have a service that is defined like 
such:

define service{
use ZZZ-service
service_description YYY
check_command check_theservice!some!arguments
}

define service{
use ZZZ-service
service_description FOO
check_command check_theservice!some!arguments
}


The definition for ZZZ-service includes:
   hostgroup_name                  ZZZServers


That part works fine as do all other aspects of nagios. Now, when I try
the following nagios doesn't appear to recognize any dependencies
(preflight shows 0, cgi shows 0).  It is definitely reading the file and
if I change it to be syntatically invalid it throws errors, but otherwise
it seems to silently ignore the depedencies. Does nagios not support
utilizing hostgroup-defined services and hostgroup-defined dependencies?

define servicedependency {
hostgroup_name ZZZServers
service_description YYY
dependent_hostgroup_name ZZZServers
dependent_service_description FOO
}

Thanks,
- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE/qSnyl2ODWuqVSBMRAtjKAKCYxh25vVjI2VYQFBa41sWQ73Z21gCfZbdL
nXAcO6dLCwHuMRZH2vkggIo=
=qF09
-----END PGP SIGNATURE-----


-------------------------------------------------------
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/




More information about the Developers mailing list