From a5c6eebcc82e31e13599ee7c3085548feb9ab05d Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 22 Feb 2010 17:11:54 -0500 Subject: Fix $nagios_parents variable in README, the correct variable name is plural as can be determined by looking at the only place it is used in target.pp: if ($nagios_parents != '') { Nagios_host["${fqdn}"] { parents => $nagios_parents } } --- README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README') diff --git a/README b/README index 2acf88d..b054235 100644 --- a/README +++ b/README @@ -32,7 +32,7 @@ This just creates a host declaration for this host's "$ipaddress" fact. If the $ipaddress of your target is not the one you wish to modify, you can use "nagios::target::fqdn" instead, which will use the $fqdn fact of the host instead. -Set the $nagios_parent variable in the node scope for enabling the reachability +Set the $nagios_parents variable in the node scope for enabling the reachability features of nagios. If a node needs more customisation, use the native "@@nagios_host" type directly (the double-ampersand declares the object as an exported resource). @@ -159,8 +159,8 @@ $HOSTADDRESS$' node target { - # Monitor this host - $nagios_parent = 'router01' + # Monitor th () is host + $nagios_parents = 'router01' include nagios::target # monitor a service -- cgit v1.2.3