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 | name scripts-nrpe-service |
---|
16 | use scripts-service |
---|
17 | notification_options w,c,r |
---|
18 | register 0 |
---|
19 | } |
---|
20 | |
---|
21 | define service { |
---|
22 | use scripts-service |
---|
23 | hostgroup_name scripts-all |
---|
24 | service_description PING |
---|
25 | check_command check_ping!500.0,30%!3000.0,80% |
---|
26 | } |
---|
27 | |
---|
28 | |
---|
29 | define service { |
---|
30 | use scripts-service |
---|
31 | hostgroup_name scripts-real |
---|
32 | service_description SSH |
---|
33 | check_command check_ssh |
---|
34 | } |
---|
35 | |
---|
36 | define service { |
---|
37 | use scripts-service |
---|
38 | host_name scripts |
---|
39 | service_description SSH |
---|
40 | check_command check_ssh |
---|
41 | notification_period afs |
---|
42 | contact_groups scripts,pagers |
---|
43 | } |
---|
44 | |
---|
45 | define service { |
---|
46 | use scripts-service |
---|
47 | hostgroup_name scripts-http |
---|
48 | service_description HTTP |
---|
49 | notification_period afs |
---|
50 | check_command check_http_heartbeat |
---|
51 | contact_groups scripts,pagers |
---|
52 | } |
---|
53 | |
---|
54 | define service { |
---|
55 | use scripts-service |
---|
56 | hostgroup_name scripts-https |
---|
57 | service_description HTTPS |
---|
58 | notification_period afs |
---|
59 | check_command check_https_cert!14 |
---|
60 | contact_groups scripts,pagers |
---|
61 | } |
---|
62 | |
---|
63 | define service { |
---|
64 | use scripts-service |
---|
65 | hostgroup_name scripts-https |
---|
66 | service_description HTTPS-CERT |
---|
67 | notification_period afs |
---|
68 | check_command check_https_cert_444!14 |
---|
69 | contact_groups scripts,pagers |
---|
70 | } |
---|
71 | |
---|
72 | define service { |
---|
73 | use scripts-service |
---|
74 | host_name scripts |
---|
75 | service_description SVN |
---|
76 | check_command check_svn |
---|
77 | notification_period afs |
---|
78 | } |
---|
79 | |
---|
80 | define service { |
---|
81 | use scripts-service |
---|
82 | hostgroup_name scripts-user |
---|
83 | service_description SVN |
---|
84 | check_command check_svn |
---|
85 | notification_period afs |
---|
86 | } |
---|
87 | |
---|
88 | define servicedependency{ |
---|
89 | host_name scripts |
---|
90 | service_description HTTP |
---|
91 | dependent_host_name scripts,scripts-cert,wildcard.scripts |
---|
92 | dependent_service_description HTTPS,HTTPS-CERT |
---|
93 | execution_failure_criteria n |
---|
94 | notification_failure_criteria w,u,c |
---|
95 | } |
---|
96 | |
---|
97 | define servicedependency{ |
---|
98 | host_name scripts |
---|
99 | service_description HTTP |
---|
100 | dependent_host_name scripts-cert |
---|
101 | dependent_service_description HTTP |
---|
102 | execution_failure_criteria n |
---|
103 | notification_failure_criteria w,u,c |
---|
104 | } |
---|
105 | |
---|
106 | |
---|
107 | define service { |
---|
108 | use scripts-nrpe-service |
---|
109 | hostgroup_name scripts-mail |
---|
110 | service_description POSTFIX |
---|
111 | check_command check_remote_procs_u!1:128!1:256!postfix |
---|
112 | } |
---|
113 | |
---|
114 | define service { |
---|
115 | use scripts-service |
---|
116 | hostgroup_name scripts-user |
---|
117 | service_description HTTP |
---|
118 | notification_period afs |
---|
119 | check_command check_http_heartbeat |
---|
120 | contact_groups scripts |
---|
121 | } |
---|
122 | |
---|
123 | define service { |
---|
124 | use scripts-service |
---|
125 | hostgroup_name scripts-user |
---|
126 | service_description HTTPS |
---|
127 | notification_period afs |
---|
128 | check_command check_https_cert!14 |
---|
129 | contact_groups scripts |
---|
130 | } |
---|
131 | |
---|
132 | define service { |
---|
133 | use scripts-nrpe-service |
---|
134 | hostgroup_name scripts-user |
---|
135 | service_description NSCD |
---|
136 | check_command check_remote_procs_u!1:256!1:512!nscd |
---|
137 | } |
---|
138 | |
---|
139 | define service { |
---|
140 | use scripts-nrpe-service |
---|
141 | hostgroup_name scripts-user |
---|
142 | service_description AFS |
---|
143 | notification_period afs |
---|
144 | check_command check_remote_afs |
---|
145 | } |
---|
146 | |
---|
147 | define service { |
---|
148 | use scripts-nrpe-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-nrpe-service |
---|
157 | hostgroup_name scripts-user |
---|
158 | service_description LDAP-MMR |
---|
159 | notification_period afs |
---|
160 | check_command check_remote_ldap_mmr |
---|
161 | } |
---|
162 | |
---|
163 | define service { |
---|
164 | use scripts-nrpe-service |
---|
165 | hostgroup_name scripts-user |
---|
166 | service_description USERS |
---|
167 | check_command check_remote_users!50!25 |
---|
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-nrpe-service |
---|
194 | hostgroup_name scripts-cron |
---|
195 | service_description CRON |
---|
196 | check_command check_remote_procs_C!1:!1:!crond |
---|
197 | } |
---|
198 | |
---|
199 | define service { |
---|
200 | use scripts-service |
---|
201 | hostgroup_name scripts-real |
---|
202 | service_description NRPE |
---|
203 | check_command check_nrpe_alive |
---|
204 | } |
---|
205 | |
---|
206 | define service { |
---|
207 | use scripts-nrpe-service |
---|
208 | hostgroup_name scripts-real |
---|
209 | service_description DISK |
---|
210 | check_command check_remote_disk!10%!5% |
---|
211 | } |
---|
212 | |
---|
213 | define service { |
---|
214 | use scripts-nrpe-service |
---|
215 | hostgroup_name scripts-user |
---|
216 | notification_period afs |
---|
217 | service_description LOAD |
---|
218 | check_command check_remote_load!50:50:50!100:50:50 |
---|
219 | } |
---|
220 | |
---|
221 | define service { |
---|
222 | use scripts-nrpe-service |
---|
223 | hostgroup_name mysql-masters,mysql-slaves |
---|
224 | service_description LOAD |
---|
225 | check_command check_remote_load!16:10:10!20:15:15 |
---|
226 | contact_groups sql |
---|
227 | } |
---|
228 | |
---|
229 | define service { |
---|
230 | use scripts-service |
---|
231 | hostgroup_name scripts-mysql |
---|
232 | service_description MYSQL |
---|
233 | check_command check_tcp!3306 |
---|
234 | contact_groups sql,scripts,pagers |
---|
235 | } |
---|
236 | |
---|
237 | define service { |
---|
238 | use scripts-service |
---|
239 | hostgroup_name scripts-mysql |
---|
240 | service_description HTTP |
---|
241 | notification_period afs |
---|
242 | check_command check_http |
---|
243 | contact_groups sql,scripts,pagers |
---|
244 | } |
---|
245 | |
---|
246 | define service { |
---|
247 | use scripts-service |
---|
248 | hostgroup_name scripts-mysql |
---|
249 | service_description HTTPS |
---|
250 | notification_period afs |
---|
251 | check_command check_https_cert!14 |
---|
252 | contact_groups sql |
---|
253 | } |
---|
254 | |
---|
255 | define service { |
---|
256 | use scripts-nrpe-service |
---|
257 | hostgroup_name mysql-masters |
---|
258 | service_description MYSQL-M |
---|
259 | check_command check_remote_mysql |
---|
260 | contact_groups sql,scripts |
---|
261 | } |
---|
262 | |
---|
263 | define service { |
---|
264 | use scripts-nrpe-service |
---|
265 | hostgroup_name mysql-slaves |
---|
266 | service_description MYSQL-S |
---|
267 | check_command check_remote_mysql_slave |
---|
268 | contact_groups sql,scripts |
---|
269 | } |
---|
270 | |
---|
271 | define service { |
---|
272 | use scripts-nrpe-service |
---|
273 | hostgroup_name scripts-user |
---|
274 | service_description CPU |
---|
275 | check_command check_remote_procs_P!4!6!50 |
---|
276 | } |
---|