aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/monitoring/params.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-11 07:45:22 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-11 08:02:15 +0200
commit0363f38e186b8c942a6db2de4974befbc373f618 (patch)
tree4c3b08bface133b92748f33bfdb0c58065433a91 /modules/profile/manifests/monitoring/params.pp
parentbff7d1b743bc2239d7ce7ced37dd03e4e846c03d (diff)
downloadPuppet-0363f38e186b8c942a6db2de4974befbc373f618.tar.gz
Puppet-0363f38e186b8c942a6db2de4974befbc373f618.tar.zst
Puppet-0363f38e186b8c942a6db2de4974befbc373f618.zip
Refactor a bit monitoring profile
Diffstat (limited to 'modules/profile/manifests/monitoring/params.pp')
-rw-r--r--modules/profile/manifests/monitoring/params.pp37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/profile/manifests/monitoring/params.pp b/modules/profile/manifests/monitoring/params.pp
new file mode 100644
index 0000000..a647130
--- /dev/null
+++ b/modules/profile/manifests/monitoring/params.pp
@@ -0,0 +1,37 @@
1class profile::monitoring::params {
2 $real_hostname = lookup("base_installation::real_hostname")
3
4 $services_for_master = "/etc/naemon/services_for_master.cfg"
5 $objects = "/etc/naemon/objects.cfg"
6 $plugins = "/etc/naemon/monitoring-plugins"
7
8 $service_generic = {
9 active_checks_enabled => "1",
10 check_freshness => "0",
11 check_interval => "10",
12 check_period => "24x7",
13 contact_groups => "admins",
14 event_handler_enabled => "1",
15 flap_detection_enabled => "1",
16 is_volatile => "0",
17 max_check_attempts => "3",
18 notification_interval => "60",
19 notification_options => "w,u,c,r",
20 notification_period => "24x7",
21 notifications_enabled => "0",
22 obsess_over_service => "1",
23 passive_checks_enabled => "1",
24 process_perf_data => "1",
25 retain_nonstatus_information => "1",
26 retain_status_information => "1",
27 retry_interval => "2",
28 }
29
30 $service_local = merge($service_generic, {
31 host_name => $real_hostname,
32 check_interval => "5",
33 max_check_attempts => "4",
34 retry_interval => "1",
35 })
36
37}