aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nagios_server/templates/etc/nagios/objects/templates.cfg.j2
blob: 4f9d306efca67f10878b2bc5f40e59a00fb49cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
define contact {
  name                           generic-contact
  host_notification_period       24x7
  host_notification_options      d,u,r,f,s
  host_notification_commands     notify-host-by-email
  service_notification_period    24x7
  service_notification_options   w,u,c,r,f,s
  service_notification_commands  notify-service-by-email
  register                       0
}

define host {
  name                           generic-host
  notifications_enabled          1
  event_handler_enabled          1
  flap_detection_enabled         0
  process_perf_data              1
  retain_status_information      1
  retain_nonstatus_information   1
  notification_period            24x7-except-reboot-window
  notification_interval          0
  notification_options           d,u,r,f
  first_notification_delay       0
  check_period                   24x7
  check_interval                 5
  retry_interval                 1
  max_check_attempts             3
  contacts                       sysadmins
  register                       0
}

define service {
  name                           generic-service
  parallelize_check              1
  check_freshness                0
  notifications_enabled          1
  event_handler_enabled          1
  flap_detection_enabled         0
  process_perf_data              1
  retain_status_information      1
  retain_nonstatus_information   1
  is_volatile                    0
  max_check_attempts             3
  check_interval                 10
  retry_interval                 1
  notification_options           w,u,c,r,f
  notification_interval          0
  first_notification_delay       0
  contacts                       sysadmins
  register                       0
}