diff options
author | mh <mh@immerda.ch> | 2008-04-28 19:44:43 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-04-28 19:44:43 +0000 |
commit | 1d325f067095606ac4ebffacd773def19473df2a (patch) | |
tree | 8b5a3179ed2ec09a88cdbb1f14f1485d4861e92f /manifests | |
parent | 72d74abef2450425bf013318b56536ee1a0fc000 (diff) |
fixed hostname stuff
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index d39fa2d..6a20259 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -190,7 +190,7 @@ class nagios::target::host { # defines define nagios::host( $ip = $fqdn, - $nagios_alias = $hostname, + $nagios_alias = $fqdn, $max_check_attempts = 4, $notification_interval = 120, $use = 'generic-host', @@ -285,10 +285,9 @@ define nagios::service( } } -define nagios::service::ping($host_name = $hostname ){ +define nagios::service::ping(){ nagios::service{ "check_ping_${hostname}": check_command => "check_ping!100.0,20%!500.0,60%", - host_name => $host_name, } } |