no longr build 31/sfapy2
[infrastructure.git] / nagios / AutomaticConfig / config-sample / services-sample.cfg
1 ###############################################################################
2 ###############################################################################
3 #
4 # SERVICES
5 #
6 ###############################################################################
7 ###############################################################################
8
9 # Generic service definition template - This is NOT a real service, just a template!
10
11 define service{
12         name                            generic-service         ; The 'name' of this service template
13         active_checks_enabled           1                       ; Active service checks are enabled
14         passive_checks_enabled          1                       ; Passive service checks are enabled/accepted
15         parallelize_check               1                       ; Active service checks should be parallelized (disabling this can lead to major performance problems)
16         obsess_over_service             1                       ; We should obsess over this service (if necessary)
17         check_freshness                 0                       ; Default is to NOT check service 'freshness'
18         notifications_enabled           1                       ; Service notifications are enabled
19         event_handler_enabled           1                       ; Service event handler is enabled
20         flap_detection_enabled          1                       ; Flap detection is enabled
21         failure_prediction_enabled      1                       ; Failure prediction is enabled
22         process_perf_data               1                       ; Process performance data
23         retain_status_information       1                       ; Retain status information across program restarts
24         retain_nonstatus_information    1                       ; Retain non-status information across program restarts
25         is_volatile                     0                       ; The service is not volatile
26         register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
27         }
28
29
30 # Local service definition template - This is NOT a real service, just a template!
31
32 define service{
33         name                            local-service           ; The name of this service template
34         use                             generic-service         ; Inherit default values from the generic-service definition
35         check_period                    24x7                    ; The service can be checked at any time of the day
36         max_check_attempts              4                       ; Re-check the service up to 4 times in order to determine its final (hard) state
37         normal_check_interval           5                       ; Check the service every 5 minutes under normal conditions
38         retry_check_interval            1                       ; Re-check the service every minute until a hard state can be determined
39         contact_groups                  admins                  ; Notifications get sent out to everyone in the 'admins' group
40         notification_options            w,u,c,r                 ; Send notifications about warning, unknown, critical, and recovery events
41         notification_interval           60                      ; Re-notify about service problems every hour
42         notification_period             24x7                    ; Notifications can be sent out at any time
43         register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
44         }
45
46
47 # Define a service to "ping" the local machine
48
49 define service{
50         use                             local-service         ; Name of service template to use
51         host_name                       onelab-test.inria.fr
52         service_description             PING
53         check_command                   check_ping!100.0,20%!500.0,60%
54         }
55
56
57 # Define a service to check the disk space of the root partition
58 # on the local machine.  Warning if < 20% free, critical if
59 # < 10% free space on partition.
60
61 define service{
62         use                             local-service         ; Name of service template to use
63         host_name                       onelab-test.inria.fr
64         service_description             Root Partition
65         check_command                   check_local_disk!20%!10%!/
66         }
67
68
69
70 # Define a service to check the number of currently logged in
71 # users on the local machine.  Warning if > 20 users, critical
72 # if > 50 users.
73
74 define service{
75         use                             local-service         ; Name of service template to use
76         host_name                       onelab-test.inria.fr
77         service_description             Current Users
78         check_command                   check_local_users!20!50
79         }
80
81
82 # Define a service to check the number of currently running procs
83 # on the local machine.  Warning if > 250 processes, critical if
84 # > 400 users.
85
86 define service{
87         use                             local-service         ; Name of service template to use
88         host_name                       onelab-test.inria.fr  ;localhost
89         service_description             Total Processes
90         check_command                   check_local_procs!250!400!RSZDT
91         }
92
93
94
95 # Define a service to check the load on the local machine. 
96
97 define service{
98         use                             local-service         ; Name of service template to use
99         host_name                       onelab-test.inria.fr
100         service_description             Current Load
101         check_command                   check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
102         }
103
104
105
106 ##################################
107 ########define service for remote hots
108 ##################
109 define service{
110         name                            remote-service          ; The name of this service template
111         
112        check_period                    24x7                     ; The service can be checked at any time of the day
113         max_check_attempts              4                       ; Re-check the service up to 4 times in order to determine its final (hard) state
114         normal_check_interval           5                       ; Check the service every 5 minutes under normal conditions
115         retry_check_interval            1                       ; Re-check the service every minute until a hard state can be determined
116         contact_groups                  admins                  ; Notifications get sent out to everyone in the 'admins' group
117         notification_options            w,u,c,r                 ; Send notifications about warning, unknown, critical, and recovery events
118         notification_interval           60                      ; Re-notify about service problems every hour
119         notification_period             24x7                    ; Notifications can be sent out at any time
120         register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
121         }
122
123
124 ##########
125 ##nrpe remote services
126 ##############
127 ##################for private.inria host
128 ###################################
129
130 define service{
131         use                             remote-service
132         host_name                       private.one-lab.org
133         service_description             check-host-alive
134         check_command                   check-host-alive!private.one-lab.org
135         }
136
137 define service{
138         use                             remote-service
139         host_name                       private.one-lab.org
140         service_description             Check the http server 
141         check_command                   check_http!private.one-lab.org
142         }
143
144 define service{
145         use                             remote-service         ; Name of service template to use
146         host_name                       private.one-lab.org
147         service_description             Check Load
148         check_command                   check_remote_load!private.one-lab.org
149         }
150 define service{
151         use                             remote-service         ; Name of service template to use
152         host_name                       private.one-lab.org
153         service_description             check users
154         check_command                   check_remote_users!private.one-lab.org
155         }
156 define service{
157         use                             remote-service         ; Name of service template to use
158         host_name                       private.one-lab.org
159         service_description             check Disk /dev/sda3
160         check_command                   check_remote_disk1!private.one-lab.org
161         }
162 define service{
163         use                             remote-service         ; Name of service template to use
164         host_name                       private.one-lab.org
165         service_description             check Disk /plc/root.img
166         check_command                   check_remote_disk2!private.one-lab.org
167         }
168 define service{
169         use                             remote-service         ; Name of service template to use
170         host_name                       private.one-lab.org
171         service_description             check procs
172         check_command                   check_remote_procs!private.one-lab.org
173 #!250!400!RSZDT
174         }
175
176 ################################
177 ############for build.org host
178 ################################
179
180 define service{
181         use                             remote-service
182         host_name                       build.one-lab.org
183         service_description             check-host-alive
184         check_command                   check-host-alive! build.one-lab.org
185         }
186
187 define service{
188         use                             remote-service
189         host_name                       build.one-lab.org
190         service_description             Check the http server 
191         check_command                   check_http!build.one-lab.org
192         }
193
194 define service{
195         use                             remote-service         ; Name of service template to use
196         host_name                       build.one-lab.org       
197         service_description             Check Load
198         check_command                   check_remote_load! build.one-lab.org
199         }
200 define service{
201         use                             remote-service         ; Name of service template to use
202         host_name                       build.one-lab.org
203         service_description             check users
204         check_command                   check_remote_users!build.one-lab.org
205         }
206 define service{
207         use                             remote-service         ; Name of service template to use
208         host_name                       build.one-lab.org
209         service_description             check disk /dev/sda3
210         check_command                   check_remote_disk1!build.one-lab.org
211         }
212 define service{
213         use                             remote-service         ; Name of service template to use
214         host_name                       build.one-lab.org
215         service_description             check disk /plc/devel/root.img
216         check_command                   check_remote_disk2!build.one-lab.org
217         }
218 define service{
219         use                             remote-service         ; Name of service template to use
220         host_name                       build.one-lab.org
221         service_description             check procs
222         check_command                   check_remote_procs!build.one-lab.org
223         }
224
225 ################################
226 ############for planet-lab.eu    host
227 ################################
228 define service{
229         use                             remote-service
230         host_name                       planet-lab.eu
231         service_description             Check the http server 
232         check_command                   check_http!planet-lab.eu
233         }
234
235 define service{
236         use                             remote-service
237         host_name                       planet-lab.eu
238         service_description             check-host-alive
239         check_command                   check-host-alive!planetlab.eu
240         }
241
242
243 define service{
244         use                             remote-service         ; Name of service template to use
245         host_name                       planet-lab.eu
246         service_description             check_load
247        check_command                    check_remote_load!planet-lab.eu
248         }
249 define service{
250         use                             remote-service         ; Name of service template to use
251         host_name                       planet-lab.eu
252         service_description             check users
253         check_command                   check_remote_users!planet-lab.eu
254         }
255 define service{
256         use                             remote-service         ; Name of service template to use
257         host_name                       planet-lab.eu
258         service_description             check Disk /home
259         check_command                   check_remote_disk1!planet-lab.eu
260         }
261
262 define service{
263         use                             remote-service         ; Name of service template to use
264         host_name                       planet-lab.eu
265         service_description             check disk /plc/root.img
266         check_command                   check_remote_disk2!planet-lab.eu
267         }
268 define service{
269         use                             remote-service         ; Name of service template to use
270         host_name                       planet-lab.eu
271         service_description             check procs
272         check_command                   check_remote_procs!planet-lab.eu
273         }
274
275 ###################################################################
276 ###################################################################
277 #services for planetlab.eu nodes
278 ###################################################################
279 ###################################################################
280 ############
281 ##onelab01
282 ########
283 define service{
284         use                             remote-service
285         host_name                       onelab01.inria.fr
286         service_description             check-host-alive
287         check_command                   check-host-alive!onelab01.inria.fr
288         }
289 define service{
290         use                             remote-service
291         host_name                       onelab01.inria.fr
292         service_description             check SSH Access
293         check_command                   check_ssh!onelab01.inria.fr
294         }
295 ###########
296 #onelab02
297 #########3
298 define service{
299         use                             remote-service
300         host_name                       onelab02.inria.fr
301         service_description             check-host-alive
302         check_command                   check-host-alive!onelab02.inria.fr
303         }
304 define service{
305         use                             remote-service
306         host_name                       onelab02.inria.fr
307         service_description             check SSH Access
308         check_command                   check_ssh!onelab02.inria.fr
309         }
310 ##############
311 ####onelab03
312 #########
313
314 define service{
315         use                             remote-service
316         host_name                       onelab03.inria.fr
317         service_description             check-host-alive
318         check_command                   check-host-alive!onelab03.inria.fr
319         }
320 define service{
321         use                             remote-service
322         host_name                       onelab03.inria.fr
323         service_description             check SSH Access
324         check_command                   check_ssh!onelab03.inria.fr
325         }