4 ###############################################################################
5 ###############################################################################
9 ###############################################################################
10 ###############################################################################
14 ####Contact definition
16 name generic-contact ; The name of this contact template
17 service_notification_period 24x7 ; service notifications can be sent anytime
18 host_notification_period 24x7 ; host notifications can be sent anytime
19 service_notification_options c,w,r
20 host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events
21 service_notification_commands notify-service-by-email!33 ; send service notifications via email
22 host_notification_commands notify-host-by-email ; send host notifications via email
23 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
24 host_notifications_enabled 1
25 service_notifications_enabled 1
27 host_notification_period 24x7
28 service_notification_period 24x7
29 email jean@serveur.home
37 ###############################################################################
38 ###############################################################################
42 ###############################################################################
43 ###############################################################################
48 # Generic host definition template - This is NOT a real host, just a template!
52 #no check_command by default
55 active_checks_enabled 1
57 event_handler_enabled 0
58 flap_detection_enabled 1
60 retain_status_information 1
61 retain_nonstatus_information 1
63 notification_interval 1
64 notification_period 24x7
65 notification_options d,u,r,f
66 notifications_enabled 1
68 event_handler super_event_kill_everyone!DIE
69 # critical_is_warning 1
71 # escalations ToLevel2
80 check_command check_ping
86 name linux ; The name of this host template
87 use generic-host ; This template inherits other values from the generic-host template
88 check_command check_ping
89 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
94 name hpux ; The name of this host template
95 use generic-host ; This template inherits other values from the generic-host template
96 check_command check_ping
97 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
124 ########## Bad defined one, please do not look at them ;)
127 name router-server ; The name of this host template
128 use generic-host ; This template inherits other values from the generic-host template
129 check_command check_dummy!0
130 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
136 name linux-server ; The name of this host template
137 use generic-host ; This template inherits other values from the generic-host template
138 check_period 24x7 ; By default, Linux hosts are checked round the clock
139 check_interval 5 ; Actively check the host every 5 minutes
140 retry_interval 5 ; Schedule host check retries at 1 minute intervals
141 max_check_attempts 2 ; Check each Linux host 10 times (max)
142 check_command check_dummy!0 ; by default up
143 notification_period 24x7
144 ; Note that the notification_period variable is being overridden from
145 ; the value that is inherited from the generic-host template!
146 notification_interval 1 ; Resend notifications every 2 hours
147 notification_options d,u,r ; Only send notifications for specific host states
148 # contact_groups admins ; Notifications get sent to the admins by default
149 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
150 hostgroups ServeursRedHat
155 name router-server ; The name of this host template
156 use generic-host ; This template inherits other values from the generic-host template
157 check_command check_dummy!0
158 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
163 # Windows host definition template - This is NOT a real host, just a template!
166 name windows-server ; The name of this host template
167 use generic-host ; Inherit default values from the generic-host template
168 check_period 24x7 ; By default, Windows servers are monitored round the clock
169 check_interval 1 ; Actively check the server every 5 minutes
170 retry_interval 1 ; Schedule host check retries at 1 minute intervals
171 max_check_attempts 2 ; Check each server 10 times (max)
172 check_command check_windows_host_alive ; Default command to check if servers are "alive"
173 notification_period 24x7 ; Send notification out at any time - day or night
174 notification_interval 1 ; Resend notifications every 5 minutes
175 notification_options d,r ; Only send notifications for specific host states
176 # contact_groups admins ; Notifications get sent to the admins by default
177 hostgroups windows-servers ; Host groups that Windows servers should be a member of
178 register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
182 # We define a generic printer template that can be used for most printers we monitor
185 name generic-printer ; The name of this host template
186 use generic-host ; Inherit default values from the generic-host template
187 check_period 24x7 ; By default, printers are monitored round the clock
188 check_interval 1 ; Actively check the printer every 5 minutes
189 retry_interval 1 ; Schedule host check retries at 1 minute intervals
190 max_check_attempts 2 ; Check each printer 10 times (max)
191 check_command check_host ; Default command to check if printers are "alive"
192 notification_period workhours ; Printers are only used during the workday
193 notification_interval 30 ; Resend notifications every 30 minutes
194 notification_options d,r ; Only send notifications for specific host states
195 # contact_groups admins ; Notifications get sent to the admins by default
196 register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
200 # Define a template for switches that we can reuse
202 name generic-switch ; The name of this host template
203 use generic-host ; Inherit default values from the generic-host template
204 check_period 24x7 ; By default, switches are monitored round the clock
205 check_interval 1 ; Switches are checked every 5 minutes
206 retry_interval 1 ; Schedule host check retries at 1 minute intervals
207 max_check_attempts 10 ; Check each switch 10 times (max)
208 check_command check_host ; Default command to check if routers are "alive"
209 notification_period 24x7 ; Send notifications at any time
210 notification_interval 30 ; Resend notifications every 30 minutes
211 notification_options d,r ; Only send notifications for specific host states
212 # contact_groups admins ; Notifications get sent to the admins by default
213 register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
219 ###############################################################################
220 ###############################################################################
224 ###############################################################################
225 ###############################################################################
228 # Generic service definition template - This is NOT a real service, just a template!
230 name generic-service ; The 'name' of this service template
231 active_checks_enabled 1 ; Active service checks are enabled
232 passive_checks_enabled 1 ; Passive service checks are enabled/accepted
233 parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
234 obsess_over_service 1 ; We should obsess over this service (if necessary)
235 check_freshness 1 ; Default is to NOT check service 'freshness'
236 freshness_threshold 3600
237 notifications_enabled 1 ; Service notifications are enabled
238 event_handler_enabled 0 ; Service event handler is enabled
239 event_handler super_event_kill_everyone!DIE
240 flap_detection_enabled 1 ; Flap detection is enabled
241 failure_prediction_enabled 1 ; Failure prediction is enabled
242 process_perf_data 1 ; Process performance data
243 retain_status_information 1 ; Retain status information across program restarts
244 retain_nonstatus_information 1 ; Retain non-status information across program restarts
245 is_volatile 0 ; The service is not volatile
246 check_period 24x7 ; The service can be checked at any time of the day
247 max_check_attempts 2 ; Re-check the service up to 3 times in order to determine its final (hard) state
248 check_interval 5 ; Check the service every 10 minutes under normal conditions
249 retry_interval 5 ; Re-check the service every two minutes until a hard state can be determined
250 contact_groups admins ; Notifications get sent out to everyone in the 'admins' group
251 notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
252 notification_interval 1 ; Re-notify about service problems every hour
253 notification_period 24x7
254 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
256 # stalking_options w,c
259 # resultmodulations critical_is_warning
260 # escalations ToLevel2
265 #This one is a real one
267 name local-service ; The name of this service template
268 use generic-service ; Inherit default values from the generic-service definition
269 max_check_attempts 1 ; Re-check the service up to 4 times in order to determine its final (hard) state
270 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!