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 USERS |
---|
159 | check_command check_remote_users!50!25 |
---|
160 | } |
---|
161 | |
---|
162 | define service { |
---|
163 | use scripts-service |
---|
164 | hostgroup_name scripts-user |
---|
165 | service_description LDAP |
---|
166 | check_command check_scripts_ldap |
---|
167 | } |
---|
168 | |
---|
169 | define service { |
---|
170 | use scripts-service |
---|
171 | hostgroup_name scripts-mail |
---|
172 | service_description SMTP |
---|
173 | check_command check_smtp |
---|
174 | } |
---|
175 | |
---|
176 | define service { |
---|
177 | use scripts-service |
---|
178 | host_name scripts |
---|
179 | notification_period afs |
---|
180 | service_description SMTP |
---|
181 | check_command check_smtp |
---|
182 | } |
---|
183 | |
---|
184 | define service { |
---|
185 | use scripts-nrpe-service |
---|
186 | hostgroup_name scripts-cron |
---|
187 | service_description CRON |
---|
188 | check_command check_remote_procs_C!1:!1:!crond |
---|
189 | } |
---|
190 | |
---|
191 | define service { |
---|
192 | use scripts-service |
---|
193 | hostgroup_name scripts-real |
---|
194 | service_description NRPE |
---|
195 | check_command check_nrpe_alive |
---|
196 | } |
---|
197 | |
---|
198 | define service { |
---|
199 | use scripts-nrpe-service |
---|
200 | hostgroup_name scripts-real |
---|
201 | service_description DISK |
---|
202 | check_command check_remote_disk!10%!5% |
---|
203 | } |
---|
204 | |
---|
205 | define service { |
---|
206 | use scripts-nrpe-service |
---|
207 | hostgroup_name scripts-user |
---|
208 | service_description LOAD |
---|
209 | check_command check_remote_load!50:50:50!100:50:50 |
---|
210 | } |
---|
211 | |
---|
212 | define service { |
---|
213 | use scripts-nrpe-service |
---|
214 | hostgroup_name mysql-masters,mysql-slaves |
---|
215 | service_description LOAD |
---|
216 | check_command check_remote_load!16:10:10!20:15:15 |
---|
217 | contact_groups sql |
---|
218 | } |
---|
219 | |
---|
220 | define service { |
---|
221 | use scripts-service |
---|
222 | hostgroup_name scripts-mysql |
---|
223 | service_description MYSQL |
---|
224 | check_command check_tcp!3306 |
---|
225 | contact_groups sql,scripts,pagers |
---|
226 | } |
---|
227 | |
---|
228 | define service { |
---|
229 | use scripts-service |
---|
230 | hostgroup_name scripts-mysql |
---|
231 | service_description HTTP |
---|
232 | notification_period afs |
---|
233 | check_command check_http |
---|
234 | contact_groups sql,scripts,pagers |
---|
235 | } |
---|
236 | |
---|
237 | define service { |
---|
238 | use scripts-nrpe-service |
---|
239 | hostgroup_name mysql-masters |
---|
240 | service_description MYSQL-M |
---|
241 | check_command check_remote_mysql |
---|
242 | contact_groups sql,scripts |
---|
243 | } |
---|
244 | |
---|
245 | define service { |
---|
246 | use scripts-nrpe-service |
---|
247 | hostgroup_name mysql-slaves |
---|
248 | service_description MYSQL-S |
---|
249 | check_command check_remote_mysql_slave |
---|
250 | contact_groups sql,scripts |
---|
251 | } |
---|
252 | |
---|
253 | define service { |
---|
254 | use scripts-nrpe-service |
---|
255 | hostgroup_name scripts-user |
---|
256 | service_description CPU |
---|
257 | notifications_enabled 0 |
---|
258 | check_command check_remote_procs_P!4!6!50 |
---|
259 | } |
---|