From 2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 16 Sep 2011 13:59:19 -0300 Subject: Add third party hosted nodes into nagios --- manifests/vserver.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'manifests/vserver.pp') diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 55ed957..02448da 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -24,12 +24,18 @@ class nodo::vserver inherits nodo { Monkeysphere_host <<| title == $hostname |>> } "third-party": { - # Apply munin configuration for this node for third-party - # hosted nodes. + # Apply munin and monkeysphere configuration for + # nodes hosted by third-parties. munin_node { "$hostname": } monkeysphere_host { "$hostname": port => $node_ssh_port, } + + # Nagios configuration + if $use_nagios != false { + include nagios::target::fqdn + nagios::service::ping { "$fqdn": } + } } } -- cgit v1.2.3