summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-04-25 21:58:57 +0000
committermh <mh@immerda.ch>2008-04-25 21:58:57 +0000
commita809c1e3573d0625e0083365f8ea706d9a8f5f3c (patch)
tree7c41a88f628f7be36bf178a92b4c7d255a5a4ae2 /manifests
parentcae02c64fd2d3052dbd36f28f0521e9dae47ff80 (diff)
added contact_groups and fixed parents
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp5
1 files 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,