multiple templates for one definition?

Peter L. Berghold Peter at berghold.net
Thu Mar 2 18:14:18 CET 2006


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

I'm not sure this has already been asked/answered and I haven't found it
specifically in the documentation, but is these legal?

define host {
	host_name a_host
	use host-template-a
	use host-template-b
}

define service {
	use a-host-template
        use generic-ping-template
}

In the case of the host definition I'm trying to put really generic
standard parameters in one template, "group specific" templates. In the
case of the service definition I'm trying to get away with defining the
ping service ONCE and the host specific parameters in another template.

The end result I'm after is a really clean configuration file set that's
fairly easy to read.


- --
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold                                     Peter at Berghold.Net
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg        Yahoo IM: blue_cowdawg              ICQ: 11455958
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFEByfpUM9/01RIhaARAvW0AJwL44r8mxiY8by2U0vTyKPVPZMYsgCgtVHv
Gb+474uQDLTqm03KLcqGp98=
=OOEh
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Peter.vcf
Type: text/x-vcard
Size: 192 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060302/75e8a068/attachment.vcf>


More information about the Users mailing list