From: Silvio Rhatto Date: Fri, 16 Sep 2011 16:59:19 +0000 (-0300) Subject: Add third party hosted nodes into nagios X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7;p=puppet-nodo.git Add third party hosted nodes into nagios --- 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": } + } } }