[Nagios-devel] template issues

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] template issues

Post by Guest »

-----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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked