2.0 Documentation error, templaterecursion.html

Eli Stair estair at ilm.com
Sat Jan 28 21:13:01 CET 2006


In this stanza, the "use" line in 'bighost2' definition should be changed from "hosttemplate1" to "bighost1", if the explanation is to be correct.

/eli


	define host{
		host_name		bighost1
		check_command		check-host-alive
		notification_options	d,u,r
		max_check_attempts	5
		name			hosttemplate1
		}

	define host{
		host_name		bighost2
		max_check_attempts	3
		use			hosttemplate1
		}

You'll note that the definition for host bighost1 has been defined as having hosttemplate1 as its template name. The definition for host bighost2 is using the definition of bighost1 as its template object. Once Nagios processes this data, the resulting definition of host bighost2 would be equivalent to this definition: 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060128/e6477bd7/attachment.html>


More information about the Users mailing list