summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-07-24 13:42:08 +0000
committermh <mh@immerda.ch>2008-07-24 13:42:08 +0000
commit893708a3ae71c9ce72ad47e41b54552dd4050519 (patch)
tree9bebbf34bc05fdcb32a096a9526ac930ecf5e2d2
parent21a5de1f19053c3ebb995895a9acb6003ed5c0ba (diff)
exporting extra host, enabled
-rw-r--r--manifests/init.pp9
1 files changed, 3 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 380c764..065cf47 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,6 +1,6 @@
#
# nagios module
-# nagios.pp - everything nagios related
+# nagios.p - everything nagios related
#
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
# Copyright 2008, admin(at)immerda.ch
@@ -222,17 +222,14 @@ define nagios::host(
# this will define a host which isn't managed by puppet.
# a ping serivce is automatically added
-# please note:
-# - you can use it only on the nagios master (no exported resources)
-# - you can not use this host for any other services!
define nagios::extra_host($ip, $nagios_alias, $host_use = 'generic-host', $parents = 'localhost' ) {
- nagios::host{$name:
+ @@nagios::host{$name:
ip => $ip,
nagios_alias => $nagios_alias,
use => $use,
parents => $parents
}
- nagios_service { "check_ping_${name}":
+ @@nagios_service { "check_ping_${name}":
check_command => "check_ping!100.0,20%!500.0,60%",
use => "generic-service",
host_name => $ip,