]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Add third party hosted nodes into nagios
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Sep 2011 16:59:19 +0000 (13:59 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 Sep 2011 16:59:19 +0000 (13:59 -0300)
manifests/vserver.pp

index 55ed9572f98ac81cff4712319b883b71f29d3834..02448da494d182ecf03ada86652d2e15554c90d3 100644 (file)
@@ -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": }
+      }
     }
   }