1 | define service { |
---|
2 | name scripts-service |
---|
3 | use generic-service |
---|
4 | max_check_attempts 6 |
---|
5 | normal_check_interval 2 |
---|
6 | retry_check_interval 1 |
---|
7 | contact_groups scripts |
---|
8 | notification_interval 240 |
---|
9 | notification_period 24x7 |
---|
10 | notification_options w,u,c,r |
---|
11 | register 0 |
---|
12 | } |
---|
13 | |
---|
14 | define service { |
---|
15 | use scripts-service |
---|
16 | hostgroup_name scripts-all |
---|
17 | service_description PING |
---|
18 | check_command check_ping!500.0,30%!3000.0,80% |
---|
19 | } |
---|
20 | |
---|
21 | |
---|
22 | define service { |
---|
23 | use scripts-service |
---|
24 | hostgroup_name scripts-real |
---|
25 | service_description SSH |
---|
26 | check_command check_ssh |
---|
27 | } |
---|
28 | |
---|
29 | define service { |
---|
30 | use scripts-service |
---|
31 | host_name scripts |
---|
32 | service_description SSH |
---|
33 | check_command check_ssh |
---|
34 | notification_period afs |
---|
35 | contact_groups scripts,pagers |
---|
36 | } |
---|
37 | |
---|
38 | define service { |
---|
39 | use scripts-service |
---|
40 | hostgroup_name scripts-http |
---|
41 | service_description HTTP |
---|
42 | notification_period afs |
---|
43 | check_command check_http_heartbeat |
---|
44 | contact_groups scripts,pagers |
---|
45 | } |
---|
46 | |
---|
47 | define service { |
---|
48 | use scripts-service |
---|
49 | hostgroup_name scripts-https |
---|
50 | service_description HTTPS |
---|
51 | notification_period afs |
---|
52 | check_command check_https_cert!14 |
---|
53 | contact_groups scripts,pagers |
---|
54 | } |
---|
55 | |
---|
56 | define service { |
---|
57 | use scripts-service |
---|
58 | hostgroup_name scripts-https |
---|
59 | service_description HTTPS-CERT |
---|
60 | notification_period afs |
---|
61 | check_command check_https_cert_444!14 |
---|
62 | contact_groups scripts,pagers |
---|
63 | } |
---|
64 | |
---|
65 | define service { |
---|
66 | use scripts-service |
---|
67 | host_name scripts |
---|
68 | service_description SVN |
---|
69 | check_command check_svn |
---|
70 | notification_period afs |
---|
71 | } |
---|
72 | |
---|
73 | define service { |
---|
74 | use scripts-service |
---|
75 | hostgroup_name scripts-user |
---|
76 | service_description SVN |
---|
77 | check_command check_svn |
---|
78 | notification_period afs |
---|
79 | } |
---|
80 | |
---|
81 | define servicedependency{ |
---|
82 | host_name scripts |
---|
83 | service_description HTTP |
---|
84 | dependent_host_name scripts,scripts-cert,wildcard.scripts |
---|
85 | dependent_service_description HTTPS,HTTPS-CERT |
---|
86 | execution_failure_criteria n |
---|
87 | notification_failure_criteria w,u,c |
---|
88 | } |
---|
89 | |
---|
90 | define servicedependency{ |
---|
91 | host_name scripts |
---|
92 | service_description HTTP |
---|
93 | dependent_host_name scripts-cert |
---|
94 | dependent_service_description HTTP |
---|
95 | execution_failure_criteria n |
---|
96 | notification_failure_criteria w,u,c |
---|
97 | } |
---|
98 | |
---|
99 | |
---|
100 | define service { |
---|
101 | use scripts-service |
---|
102 | hostgroup_name scripts-mail |
---|
103 | service_description POSTFIX |
---|
104 | check_command check_remote_procs_u!1:128!1:256!postfix |
---|
105 | } |
---|
106 | |
---|
107 | define servicedependency { |
---|
108 | hostgroup_name scripts-mail |
---|
109 | service_description NRPE |
---|
110 | dependent_service_description POSTFIX |
---|
111 | execution_failure_criteria n |
---|
112 | notification_failure_criteria w,u,c |
---|
113 | } |
---|
114 | |
---|
115 | define service { |
---|
116 | use scripts-service |
---|
117 | hostgroup_name scripts-user |
---|
118 | service_description HTTP |
---|
119 | notification_period afs |
---|
120 | check_command check_http_heartbeat |
---|
121 | contact_groups scripts |
---|
122 | } |
---|
123 | |
---|
124 | define service { |
---|
125 | use scripts-service |
---|
126 | hostgroup_name scripts-user |
---|
127 | service_description HTTPS |
---|
128 | notification_period afs |
---|
129 | check_command check_https_cert!14 |
---|
130 | contact_groups scripts |
---|
131 | } |
---|
132 | |
---|
133 | define service { |
---|
134 | use scripts-service |
---|
135 | hostgroup_name scripts-user |
---|
136 | service_description NSCD |
---|
137 | check_command check_remote_procs_u!1:256!1:512!nscd |
---|
138 | } |
---|
139 | |
---|
140 | define service { |
---|
141 | use scripts-service |
---|
142 | hostgroup_name scripts-user |
---|
143 | service_description AFS |
---|
144 | check_command check_remote_afs |
---|
145 | } |
---|
146 | |
---|
147 | define service { |
---|
148 | use scripts-service |
---|
149 | hostgroup_name scripts-user |
---|
150 | service_description CRON-WORKING |
---|
151 | notification_period afs |
---|
152 | check_command check_remote_cron_working |
---|
153 | } |
---|
154 | |
---|
155 | define service { |
---|
156 | use scripts-service |
---|
157 | hostgroup_name scripts-user |
---|
158 | service_description USERS |
---|
159 | check_command check_remote_users!50!25 |
---|
160 | } |
---|
161 | |
---|
162 | define servicedependency { |
---|
163 | hostgroup_name scripts-user |
---|
164 | service_description NRPE |
---|
165 | dependent_service_description NSCD,AFS,USERS,CRON-WORKING |
---|
166 | execution_failure_criteria n |
---|
167 | notification_failure_criteria w,u,c |
---|
168 | } |
---|
169 | |
---|
170 | define service { |
---|
171 | use scripts-service |
---|
172 | hostgroup_name scripts-user |
---|
173 | service_description LDAP |
---|
174 | check_command check_scripts_ldap |
---|
175 | } |
---|
176 | |
---|
177 | define service { |
---|
178 | use scripts-service |
---|
179 | hostgroup_name scripts-mail |
---|
180 | service_description SMTP |
---|
181 | check_command check_smtp |
---|
182 | } |
---|
183 | |
---|
184 | define service { |
---|
185 | use scripts-service |
---|
186 | host_name scripts |
---|
187 | notification_period afs |
---|
188 | service_description SMTP |
---|
189 | check_command check_smtp |
---|
190 | } |
---|
191 | |
---|
192 | define service { |
---|
193 | use scripts-service |
---|
194 | hostgroup_name scripts-cron |
---|
195 | service_description CRON |
---|
196 | check_command check_remote_procs_C!1:!1:!crond |
---|
197 | } |
---|
198 | |
---|
199 | define servicedependency { |
---|
200 | hostgroup_name scripts-cron |
---|
201 | service_description NRPE |
---|
202 | dependent_service_description CRON |
---|
203 | execution_failure_criteria n |
---|
204 | notification_failure_criteria w,u,c |
---|
205 | } |
---|
206 | |
---|
207 | define service { |
---|
208 | use scripts-service |
---|
209 | hostgroup_name scripts-real |
---|
210 | service_description NRPE |
---|
211 | check_command check_nrpe_alive |
---|
212 | } |
---|
213 | |
---|
214 | define service { |
---|
215 | use scripts-service |
---|
216 | hostgroup_name scripts-real |
---|
217 | service_description DISK |
---|
218 | check_command check_remote_disk!10%!5% |
---|
219 | } |
---|
220 | |
---|
221 | define servicedependency { |
---|
222 | hostgroup_name scripts-real |
---|
223 | service_description NRPE |
---|
224 | dependent_service_description DISK |
---|
225 | execution_failure_criteria n |
---|
226 | notification_failure_criteria w,u,c |
---|
227 | } |
---|
228 | |
---|
229 | define service { |
---|
230 | use scripts-service |
---|
231 | host_name b-m,o-f |
---|
232 | service_description LOAD |
---|
233 | check_command check_remote_load!50:50:50!100:50:50 |
---|
234 | } |
---|
235 | |
---|
236 | define servicedependency { |
---|
237 | host_name b-m,o-f |
---|
238 | service_description NRPE |
---|
239 | dependent_service_description LOAD |
---|
240 | execution_failure_criteria n |
---|
241 | notification_failure_criteria w,u,c |
---|
242 | } |
---|
243 | |
---|
244 | define service { |
---|
245 | use scripts-service |
---|
246 | hostgroup_name mysql-masters,mysql-slaves |
---|
247 | service_description LOAD |
---|
248 | check_command check_remote_load!16:10:10!20:15:15 |
---|
249 | contact_groups sql |
---|
250 | } |
---|
251 | |
---|
252 | define service { |
---|
253 | use scripts-service |
---|
254 | hostgroup_name scripts-mysql |
---|
255 | service_description MYSQL |
---|
256 | check_command check_tcp!3306 |
---|
257 | contact_groups sql,scripts,pagers |
---|
258 | } |
---|
259 | |
---|
260 | define service { |
---|
261 | use scripts-service |
---|
262 | hostgroup_name scripts-mysql |
---|
263 | service_description HTTP |
---|
264 | notification_period afs |
---|
265 | check_command check_http |
---|
266 | contact_groups sql,scripts,pagers |
---|
267 | } |
---|
268 | |
---|
269 | define service { |
---|
270 | use scripts-service |
---|
271 | hostgroup_name mysql-masters |
---|
272 | service_description MYSQL-M |
---|
273 | check_command check_remote_mysql |
---|
274 | contact_groups sql,scripts |
---|
275 | } |
---|
276 | |
---|
277 | define service { |
---|
278 | use scripts-service |
---|
279 | hostgroup_name mysql-slaves |
---|
280 | service_description MYSQL-S |
---|
281 | check_command check_remote_mysql_slave |
---|
282 | contact_groups sql,scripts |
---|
283 | } |
---|
284 | |
---|
285 | define service { |
---|
286 | use scripts-service |
---|
287 | host_name b-m,o-f,b-k |
---|
288 | service_description CPU |
---|
289 | notifications_enabled 0 |
---|
290 | check_command check_remote_procs_P!4!6!50 |
---|
291 | } |
---|
292 | define servicedependency { |
---|
293 | hostgroup_name scripts-user |
---|
294 | service_description NRPE |
---|
295 | dependent_service_description CPU |
---|
296 | execution_failure_criteria n |
---|
297 | notification_failure_criteria w,u,c |
---|
298 | } |
---|