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