]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/profile/manifests/monitoring/params.pp
Refactor a bit monitoring profile
[perso/Immae/Projets/Puppet.git] / modules / profile / manifests / monitoring / params.pp
CommitLineData
0363f38e
IB
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}