From a809c1e3573d0625e0083365f8ea706d9a8f5f3c Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 25 Apr 2008 21:58:57 +0000 Subject: added contact_groups and fixed parents --- manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 93e818b..d4ef43c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -88,7 +88,7 @@ class nagios::base { ensure => file, replace => false, notify => Service[nagios], - mode => 0644, owner => root, group => root; + mode => 0644, owner => root, group => 0; } # old way of commands to not break the current config @@ -213,6 +213,7 @@ define nagios::host( max_check_attempts => $max_check_attempts, notification_interval => $notification_interval, parents => $real_nagios_parents, + contact_groups => $real_nagios_contact_groups, use => $use, } } @@ -222,7 +223,7 @@ define nagios::host( # 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 = 'none' ) { +define nagios::extra_host($ip, $nagios_alias, $host_use = 'generic-host', $parents = 'localhost' ) { nagios::host{$name: ip => $ip, nagios_alias => $nagios_alias, -- cgit v1.2.3