summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-07-24 17:15:23 +0000
committermh <mh@immerda.ch>2008-07-24 17:15:23 +0000
commitc87603cec6a50135eb7e00e7163445eb33aa667b (patch)
tree5a1e92cbb5ad31fc6dfa8b3c29c524b6dc58d268 /manifests/init.pp
parentb17387155d5cb2133a011292c30de860dac88c09 (diff)
added more options for nagios hosts
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3cf1e22..3c0c82d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -192,8 +192,12 @@ class nagios::target::host {
define nagios::host(
$ip = $fqdn,
$nagios_alias = $hostname,
+ $check_command = 'check-host-alive',
$max_check_attempts = 4,
+ $check_period = '24x7',
$notification_interval = 120,
+ $notification_period = '24x7',
+ $notification_options = 'd,r',
$use = 'generic-host',
$nagios_contact_groups_in = $nagios_contact_groups,
$parents = 'localhost' )
@@ -211,8 +215,12 @@ define nagios::host(
ensure => present,
address => $ip,
alias => $nagios_alias,
+ check_command => $check_command,
max_check_attempts => $max_check_attempts,
+ check_period => $check_period,
notification_interval => $notification_interval,
+ notification_period => $notification_period,
+ notification_options => $notification_options,
parents => $real_nagios_parents,
contact_groups => $real_nagios_contact_groups,
use => $use,