]> git.pld-linux.org Git - projects/nagios-config.git/blob - objects/templates.cfg
- objects from nagios 3.0.2
[projects/nagios-config.git] / objects / templates.cfg
1 ###############################################################################
2 # TEMPLATES.CFG
3 #
4 # $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
5 ###############################################################################
6
7 ###############################################################################
8 ###############################################################################
9 #
10 # CONTACT TEMPLATES
11 #
12 ###############################################################################
13 ###############################################################################
14
15 # Generic contact definition template - This is NOT a real contact, just a template!
16 define contact {
17         ; The name of this contact template
18         name                                                    generic-contact
19         ; service notifications can be sent anytime
20         service_notification_period             24x7
21         ; host notifications can be sent anytime
22         host_notification_period                24x7
23         ; send notifications for all service states, flapping events, and scheduled downtime events
24         service_notification_options    w,u,c,r,f,s
25         ; send notifications for all host states, flapping events, and scheduled downtime events
26         host_notification_options               d,u,r,f,s
27         ; send service notifications via email
28         service_notification_commands   notify-service-by-email
29         ; send host notifications via email
30         host_notification_commands              notify-host-by-email
31         ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
32         register                                                0
33 }
34
35 ###############################################################################
36 ###############################################################################
37 #
38 # HOST TEMPLATES
39 #
40 ###############################################################################
41 ###############################################################################
42
43 # Generic host definition template - This is NOT a real host, just a template!
44 define host {
45         ; The name of this host template
46         name                                                    generic-host
47         ; Host notifications are enabled
48         notifications_enabled                   1
49         ; Host event handler is enabled
50         event_handler_enabled                   1
51         ; Flap detection is enabled
52         flap_detection_enabled                  1
53         ; Failure prediction is enabled
54         failure_prediction_enabled              1
55         ; Process performance data
56         process_perf_data                               1
57         ; Retain status information across program restarts
58         retain_status_information               1
59         ; Retain non-status information across program restarts
60         retain_nonstatus_information    1
61         ; Send host notifications at any time
62         notification_period                             24x7
63         ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
64         register                                                0
65 }
66
67 # Linux host definition template - This is NOT a real host, just a template!
68 define host {
69         ; The name of this host template
70         name                                    linux-server
71         ; This template inherits other values from the generic-host template
72         use                                             generic-host
73         ; By default, Linux hosts are checked round the clock
74         check_period                    24x7
75         ; Actively check the host every 5 minutes
76         check_interval                  5
77         ; Schedule host check retries at 1 minute intervals
78         retry_interval                  1
79         ; Check each Linux host 10 times (max)
80         max_check_attempts              10
81         ; Default command to check Linux hosts
82         check_command                   check-host-alive
83         ; Linux admins hate to be woken up, so we only notify during the day
84         ; Note that the notification_period variable is being overridden from
85         ; the value that is inherited from the generic-host template!
86         notification_period             workhours
87         ; Resend notifications every 2 hours
88         notification_interval   120
89         ; Only send notifications for specific host states
90         notification_options    d,u,r
91         ; Notifications get sent to the admins by default
92         contact_groups                  admins
93         ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
94         register                                0
95 }
96
97 # Windows host definition template - This is NOT a real host, just a template!
98 define host {
99         ; The name of this host template
100         name                                    windows-server
101         ; Inherit default values from the generic-host template
102         use                                             generic-host
103         ; By default, Windows servers are monitored round the clock
104         check_period                    24x7
105         ; Actively check the server every 5 minutes
106         check_interval                  5
107         ; Schedule host check retries at 1 minute intervals
108         retry_interval                  1
109         ; Check each server 10 times (max)
110         max_check_attempts              10
111         ; Default command to check if servers are "alive"
112         check_command                   check-host-alive
113         ; Send notification out at any time - day or night
114         notification_period             24x7
115         ; Resend notifications every 30 minutes
116         notification_interval   30
117         ; Only send notifications for specific host states
118         notification_options    d,r
119         ; Notifications get sent to the admins by default
120         contact_groups                  admins
121         ; Host groups that Windows servers should be a member of
122         hostgroups                              windows-servers
123         ; DONT REGISTER THIS - ITS JUST A TEMPLATE
124         register                                0
125 }
126
127 # We define a generic printer template that can be used for most printers we monitor
128 define host {
129         ; The name of this host template
130         name                                    generic-printer
131         ; Inherit default values from the generic-host template
132         use                                             generic-host
133         ; By default, printers are monitored round the clock
134         check_period                    24x7
135         ; Actively check the printer every 5 minutes
136         check_interval                  5
137         ; Schedule host check retries at 1 minute intervals
138         retry_interval                  1
139         ; Check each printer 10 times (max)
140         max_check_attempts              10
141         ; Default command to check if printers are "alive"
142         check_command                   check-host-alive
143         ; Printers are only used during the workday
144         notification_period             workhours
145         ; Resend notifications every 30 minutes
146         notification_interval   30
147         ; Only send notifications for specific host states
148         notification_options    d,r
149         ; Notifications get sent to the admins by default
150         contact_groups                  admins
151         ; DONT REGISTER THIS - ITS JUST A TEMPLATE
152         register                                0
153 }
154
155 # Define a template for switches that we can reuse
156 define host {
157         ; The name of this host template
158         name                                    generic-switch
159         ; Inherit default values from the generic-host template
160         use                                             generic-host
161         ; By default, switches are monitored round the clock
162         check_period                    24x7
163         ; Switches are checked every 5 minutes
164         check_interval                  5
165         ; Schedule host check retries at 1 minute intervals
166         retry_interval                  1
167         ; Check each switch 10 times (max)
168         max_check_attempts              10
169         ; Default command to check if routers are "alive"
170         check_command                   check-host-alive
171         ; Send notifications at any time
172         notification_period             24x7
173         ; Resend notifications every 30 minutes
174         notification_interval   30
175         ; Only send notifications for specific host states
176         notification_options    d,r
177         ; Notifications get sent to the admins by default
178         contact_groups                  admins
179         ; DONT REGISTER THIS - ITS JUST A TEMPLATE
180         register                                0
181 }
182
183 ###############################################################################
184 ###############################################################################
185 #
186 # SERVICE TEMPLATES
187 #
188 ###############################################################################
189 ###############################################################################
190
191 # Generic service definition template - This is NOT a real service, just a template!
192 define service {
193         ; The 'name' of this service template
194         name                                                    generic-service
195         ; Active service checks are enabled
196         active_checks_enabled                   1
197         ; Passive service checks are enabled/accepted
198         passive_checks_enabled                  1
199         ; Active service checks should be parallelized (disabling this can lead to major performance problems)
200         parallelize_check                               1
201         ; We should obsess over this service (if necessary)
202         obsess_over_service                             1
203         ; Default is to NOT check service 'freshness'
204         check_freshness                                 0
205         ; Service notifications are enabled
206         notifications_enabled                   1
207         ; Service event handler is enabled
208         event_handler_enabled                   1
209         ; Flap detection is enabled
210         flap_detection_enabled                  1
211         ; Failure prediction is enabled
212         failure_prediction_enabled              1
213         ; Process performance data
214         process_perf_data                               1
215         ; Retain status information across program restarts
216         retain_status_information               1
217         ; Retain non-status information across program restarts
218         retain_nonstatus_information    1
219         ; The service is not volatile
220         is_volatile                                             0
221         ; The service can be checked at any time of the day
222         check_period                                    24x7
223         ; Re-check the service up to 3 times in order to determine its final (hard) state
224         max_check_attempts                              3
225         ; Check the service every 10 minutes under normal conditions
226         normal_check_interval                   10
227         ; Re-check the service every two minutes until a hard state can be determined
228         retry_check_interval                    2
229         ; Notifications get sent out to everyone in the 'admins' group
230         contact_groups                                  admins
231         ; Send notifications about warning, unknown, critical, and recovery events
232         notification_options                    w,u,c,r
233         ; Re-notify about service problems every hour
234         notification_interval                   60
235         ; Notifications can be sent out at any time
236         notification_period                             24x7
237         ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
238         register                                                0
239 }
240
241 # Local service definition template - This is NOT a real service, just a template!
242 define service {
243         ; The name of this service template
244         name                                    local-service
245         ; Inherit default values from the generic-service definition
246         use                                             generic-service
247         ; Re-check the service up to 4 times in order to determine its final (hard) state
248         max_check_attempts              4
249         ; Check the service every 5 minutes under normal conditions
250         normal_check_interval   5
251         ; Re-check the service every minute until a hard state can be determined
252         retry_check_interval    1
253         ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
254         register                                0
255 }
256
257 # vim:ts=4:sw=4:ft=nagios
This page took 0.558066 seconds and 3 git commands to generate.