1 | define timeperiod{ |
---|
2 | timeperiod_name 24x7 |
---|
3 | alias 24 Hours A Day, 7 Days A Week |
---|
4 | sunday 00:00-24:00 |
---|
5 | monday 00:00-24:00 |
---|
6 | tuesday 00:00-24:00 |
---|
7 | wednesday 00:00-24:00 |
---|
8 | thursday 00:00-24:00 |
---|
9 | friday 00:00-24:00 |
---|
10 | saturday 00:00-24:00 |
---|
11 | } |
---|
12 | |
---|
13 | define timeperiod{ |
---|
14 | timeperiod_name afs |
---|
15 | alias 24 Hours A Day, 7 Days A Week, except Sunday Morning |
---|
16 | sunday 00:00-05:59,07:00-24:00 |
---|
17 | monday 00:00-24:00 |
---|
18 | tuesday 00:00-24:00 |
---|
19 | wednesday 00:00-24:00 |
---|
20 | thursday 00:00-24:00 |
---|
21 | friday 00:00-24:00 |
---|
22 | saturday 00:00-24:00 |
---|
23 | } |
---|
24 | |
---|
25 | define contact{ |
---|
26 | contact_name nagios-admin |
---|
27 | alias Nagios Admin |
---|
28 | service_notification_period 24x7 |
---|
29 | host_notification_period 24x7 |
---|
30 | service_notification_options n |
---|
31 | host_notification_options n |
---|
32 | service_notification_commands notify-by-email |
---|
33 | host_notification_commands host-notify-by-email |
---|
34 | email nagios-admin@localhost |
---|
35 | } |
---|
36 | |
---|
37 | define contactgroup{ |
---|
38 | contactgroup_name admins |
---|
39 | alias Administrators |
---|
40 | members nagios-admin |
---|
41 | } |
---|
42 | |
---|
43 | define host{ |
---|
44 | name generic-host ; The name of this host template |
---|
45 | notifications_enabled 1 ; Host notifications are enabled |
---|
46 | event_handler_enabled 1 ; Host event handler is enabled |
---|
47 | flap_detection_enabled 1 ; Flap detection is enabled |
---|
48 | failure_prediction_enabled 1 ; Failure prediction is enabled |
---|
49 | process_perf_data 1 ; Process performance data |
---|
50 | retain_status_information 1 ; Retain status information across program restarts |
---|
51 | retain_nonstatus_information 1 ; Retain non-status information across program restarts |
---|
52 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! |
---|
53 | } |
---|
54 | |
---|
55 | define host { |
---|
56 | use generic-host ; Name of host template to use |
---|
57 | host_name localhost |
---|
58 | alias localhost |
---|
59 | address 127.0.0.1 |
---|
60 | check_command check-host-alive |
---|
61 | max_check_attempts 10 |
---|
62 | check_period 24x7 |
---|
63 | notification_interval 240 |
---|
64 | notification_period 24x7 |
---|
65 | contact_groups admins |
---|
66 | } |
---|
67 | # notification_options n |
---|
68 | |
---|
69 | define hostgroup { |
---|
70 | hostgroup_name all |
---|
71 | alias All Servers |
---|
72 | members * |
---|
73 | } |
---|
74 | |
---|
75 | define service{ |
---|
76 | name generic-service ; The 'name' of this service template |
---|
77 | active_checks_enabled 1 ; Active service checks are enabled |
---|
78 | passive_checks_enabled 1 ; Passive service checks are enabled/accepted |
---|
79 | parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) |
---|
80 | obsess_over_service 1 ; We should obsess over this service (if necessary) |
---|
81 | check_freshness 0 ; Default is to NOT check service 'freshness' |
---|
82 | notifications_enabled 1 ; Service notifications are enabled |
---|
83 | event_handler_enabled 1 ; Service event handler is enabled |
---|
84 | flap_detection_enabled 1 ; Flap detection is enabled |
---|
85 | failure_prediction_enabled 1 ; Failure prediction is enabled |
---|
86 | process_perf_data 1 ; Process performance data |
---|
87 | retain_status_information 1 ; Retain status information across program restarts |
---|
88 | retain_nonstatus_information 1 ; Retain non-status information across program restarts |
---|
89 | register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! |
---|
90 | check_period 24x7 |
---|
91 | max_check_attempts 4 |
---|
92 | normal_check_interval 5 |
---|
93 | retry_check_interval 1 |
---|
94 | contact_groups admins |
---|
95 | notification_interval 1920 |
---|
96 | notification_period 24x7 |
---|
97 | is_volatile 0 |
---|
98 | } |
---|
99 | # notification_options n |
---|
100 | |
---|
101 | define service { |
---|
102 | use generic-service |
---|
103 | host_name localhost |
---|
104 | service_description PING |
---|
105 | check_command check_ping!100.0,20%!500.0,60% |
---|
106 | } |
---|
107 | |
---|
108 | define service { |
---|
109 | use generic-service |
---|
110 | host_name localhost |
---|
111 | service_description DISK: / |
---|
112 | check_command check_local_disk!20%!10%!/ |
---|
113 | } |
---|
114 | |
---|
115 | define service { |
---|
116 | use generic-service |
---|
117 | host_name localhost |
---|
118 | service_description USERS |
---|
119 | check_command check_local_users!20!50 |
---|
120 | } |
---|
121 | |
---|
122 | define service{ |
---|
123 | use generic-service |
---|
124 | host_name localhost |
---|
125 | service_description PROCS |
---|
126 | check_command check_local_procs!250!400 |
---|
127 | } |
---|
128 | |
---|
129 | define service{ |
---|
130 | use generic-service |
---|
131 | host_name localhost |
---|
132 | service_description LOAD |
---|
133 | check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 |
---|
134 | } |
---|