diff options
-rw-r--r-- | manifests/init.pp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 18aeccd..b146a97 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -235,13 +235,11 @@ define nagios::extra_host($ip, $nagios_alias, $use = 'generic-host', $parents = use => $use, parents => $parents } - @@nagios_service { "check_ping_${name}": + nagios::service { "check_ping_${name}": + host_name => $name, check_command => "check_ping!100.0,20%!500.0,60%", - use => "generic-service", host_name => $name, - notification_period => "24x7", service_description => "${nagios_alias}_check_ping", - notify => Service[nagios], } } |