aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-16 13:59:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-16 13:59:19 -0300
commit2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7 (patch)
tree59d41d243545014d01cf4845f7bed301ab1431f4
parent83d69a67fe2b8ad200ea20866985179c57e1139c (diff)
downloadpuppet-nodo-2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7.tar.gz
puppet-nodo-2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7.tar.bz2
Add third party hosted nodes into nagios
-rw-r--r--manifests/vserver.pp10
1 files changed, 8 insertions, 2 deletions
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": }
+ }
}
}