diff options
author | mh <mh@immerda.ch> | 2010-05-05 23:22:10 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-05-05 23:22:10 +0200 |
commit | 33b091b896fbb0b54ee9968c452ef2a8867893d8 (patch) | |
tree | 863c61e2de0c258c859527e14e86b47ffd8f0bb1 /manifests/host.pp | |
parent | 77f601607093b7fb22f3498574d0dedd2cbe01d9 (diff) | |
parent | 5d5ec8c28d0fe39359af8db159b14faeae397e1f (diff) |
merged with lavamind
Diffstat (limited to 'manifests/host.pp')
-rw-r--r-- | manifests/host.pp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/manifests/host.pp b/manifests/host.pp deleted file mode 100644 index 8814738..0000000 --- a/manifests/host.pp +++ /dev/null @@ -1,37 +0,0 @@ -define nagios::host( - $ensure = present, - $ip = $fqdn, - $nagios_alias = $hostname, - $check_command = 'check-host-alive', - $max_check_attempts = 4, - $notification_interval = 120, - $notification_period = '24x7', - $notification_options = 'd,r', - $use = 'generic-host', - $nagios_contact_groups_in = $nagios_contact_groups, - $parents = 'localhost' ) -{ - $real_nagios_contact_groups = $nagios_contact_groups_in ? { - '' => 'admins', - default => $nagios_contact_groups_in - } - $real_nagios_parents = $parents ? { - '' => 'localhost', - default => $parents - } - - @@nagios_host { $name: - ensure => $ensure, - address => $ip, - alias => $nagios_alias, - check_command => $check_command, - max_check_attempts => $max_check_attempts, - notification_interval => $notification_interval, - notification_period => $notification_period, - notification_options => $notification_options, - parents => $real_nagios_parents, - contact_groups => $real_nagios_contact_groups, - use => $use, - notify => Service[nagios], - } -} |