]>
Commit | Line | Data |
---|---|---|
0363f38e IB |
1 | class 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 | ||
0cdf4940 IB |
8 | $service_types = { |
9 | "passive" => "external-passive-service", | |
10 | "web" => "external-web-service", | |
11 | } | |
12 | ||
0363f38e IB |
13 | $service_generic = { |
14 | active_checks_enabled => "1", | |
15 | check_freshness => "0", | |
16 | check_interval => "10", | |
17 | check_period => "24x7", | |
18 | contact_groups => "admins", | |
19 | event_handler_enabled => "1", | |
20 | flap_detection_enabled => "1", | |
21 | is_volatile => "0", | |
22 | max_check_attempts => "3", | |
23 | notification_interval => "60", | |
24 | notification_options => "w,u,c,r", | |
25 | notification_period => "24x7", | |
26 | notifications_enabled => "0", | |
27 | obsess_over_service => "1", | |
28 | passive_checks_enabled => "1", | |
29 | process_perf_data => "1", | |
30 | retain_nonstatus_information => "1", | |
31 | retain_status_information => "1", | |
32 | retry_interval => "2", | |
33 | } | |
34 | ||
35 | $service_local = merge($service_generic, { | |
36 | host_name => $real_hostname, | |
37 | check_interval => "5", | |
38 | max_check_attempts => "4", | |
39 | retry_interval => "1", | |
40 | }) | |
41 | ||
60fb787d | 42 | $service_local_for_master = { |
63102a9b IB |
43 | host_name => $service_local["host_name"], |
44 | check_interval => $service_local["check_interval"], | |
45 | retry_interval => $service_local["retry_interval"], | |
46 | freshness_threshold => Integer(60 * Integer($service_local["check_interval"]) * 1.5), | |
47 | use => $service_types["passive"], | |
60fb787d | 48 | } |
0363f38e | 49 | } |