File: nestedtemplates.cfg

package info (click to toggle)
libnagios-object-perl 0.21.20-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,032 kB
  • sloc: perl: 3,198; makefile: 9
file content (231 lines) | stat: -r--r--r-- 8,701 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
################################################################################
# Generic host definition template
define host {
	name				generic-host	; The name of this host template
	notifications_enabled	    	1	; Host notifications are enabled
	event_handler_enabled		    1	; Host event handler is enabled
	flap_detection_enabled		    1	; Flap detection is enabled
	process_perf_data		        0	; Process performance data
	retain_status_information	    1	; Retain status information
	retain_nonstatus_information	1	; Retain non-status information
	register			            0	; it's just a template
    max_check_attempts              10
    alias                           HOST
	check_command	    	        check-host-alive
}
# ---------------------------------------------------------------------------- #
# generic/global service definition template
define service {
	name			            	generic-service	
	max_check_attempts		        3   ; check at least 3 times
	normal_check_interval	        5   ; check every 5 minutes
	retry_check_interval	        5   ; retry every minute
	active_checks_enabled	    	1	; Active service checks are enabled
	passive_checks_enabled	    	1	; Passive service checks are enabled
	parallelize_check		        1	; parallelize service checks
	obsess_over_service		        1	; obsess over this service
	check_freshness			        0	; check service 'freshness' default 0
	notifications_enabled		    1	; Service notifications are enabled
	event_handler_enabled		    1	; Service event handler is enabled
	flap_detection_enabled		    1	; Flap detection is enabled
	process_perf_data		        1	; Process performance data
	retain_status_information	    1	; Retain status information
	retain_nonstatus_information	1	; Retain non-status information
    max_check_attempts              3   ; check up to 3 times
	is_volatile			            0
	notification_interval	        120 ; renotify every 2 hours
	notification_period		        24x7; notify 24x7
	check_period			        24x7; monitor 24x7
	register			            0	; this is only a template
}
# ---------------------------------------------------------------------------- #
# THE contact template
define contact {
    name                            generic-contact
    service_notification_period     24x7
    host_notification_period        24x7
    service_notification_options    w,c,r ; only "r" for SMW, w,c,r otherwise
    host_notification_options       d,u,r ; only "r" for SMW, d,u,r otherwise
    service_notification_commands   notify-by-email
    host_notification_commands      host-notify-by-email
    register                        0
}

# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
define host {
    use                     generic-host
    name                    generic-production-host
    notification_interval   60
    notification_period     24x7
    notification_options    d,u,r
    register                0
}
define host {
    use                     generic-host
    name                    generic-development-host
    notification_interval   360
    notification_period     24x7
    notification_options    d,u,r
    register                0
}
define host {
    use                     generic-production-host
    name                    dmz-host
    parents                 firewall
    register                0
}
define host {
    use                     generic-production-host
    name                    unix-host
    register                0
}
define host {
    use                     generic-production-host
    name                    linux-host
    register                0
}
define host {
    use                     generic-production-host
    name                    firewall-host
    register                0
}
define host {
    use                     generic-production-host
    name                    san-host
    register                0
}
define host {
    use                     generic-production-host
    name                    env-mon-device
    register                0
}
define host {
    use                     generic-development-host
    name                    development-host
    register                0
}
define host {
    use                     generic-production-host
    name                    security-host
    register                0
}
define host {
    use                     generic-production-host
    name                    lan-host
    register                0
}

# ---------------------------------------------------------------------------- #
# ---------------------------------------------------------------------------- #
define service {
    use                     generic-service
    name                    generic-prod-service
	contact_groups			admins          ; tell the admins
	notification_options	w,c,r           ; Warnings,Critical,Recoverd,Unknown
    register                0
}
define service {
    use                     generic-service
    name                    generic-dev-service
	max_check_attempts		5               ; check at least 3 times
	normal_check_interval	10              ; check every 10 minutes
	is_volatile			    0               ; service should not be volatile
	contact_groups			admins          ; tell the admins
	notification_interval	240             ; only notify every 4 hours
	notification_period		wakinghours     ; I only care when I'm awake
	check_period			24x7            ; monitor service 24x7
	notification_options	n               ; Warnings,Critical,Recoverd,Unknown,None
    register                0
}
define service {
    use                     generic-service
    name                    passive-prod-service
	contact_groups			admins          ; tell the admins
    active_checks_enabled   1
    check_period            none
    passive_checks_enabled  1
    check_freshness         1
    freshness_threshold     600
	notification_interval	120             ; renotify every 2 hours
	notification_period		24x7            ; notify 24x7
	notification_options	w,c,r           ; Warnings,Critical,Recoverd,Unknown
    register                0
}
define service {
    use                     generic-prod-service
    name                    insensitive-prod-service
	max_check_attempts		6 ; retry at least 5 times
    register                0
}
define service {
    use                     generic-prod-service
    name                    waking-prod-service
    notification_period     wakinghours     ; I only care when I'm awake
    register                0
}
define service {
    use                     generic-prod-service
    name                    do-not-disturb-service
	normal_check_interval	60               ; check once an hour
    notification_period     donotdisturb     ; Never send a notification
    register                0
}
define service {
    use                             generic-dev-service
    name                            perfdata-only
    max_check_attempts              5
	event_handler_enabled		    0
	retain_status_information	    0
	retain_nonstatus_information	0
	flap_detection_enabled		    0
	obsess_over_service		        0
	notification_options            n
    register                        0
}
# ---------------------------------------------------------------------------- #
# Define DBA groups
# ---------------------------------------------------------------------------- #
define service {
    use                     generic-service
    name                    dba-prod-service
	contact_groups			dba
	notification_options		w,c,r
    register                0
}
define service {
    use                     generic-service
    name                    dba-dev-service
	max_check_attempts		5
	normal_check_interval		10
	is_volatile			0
	contact_groups			dba
	notification_interval		240
	notification_period		wakinghours
	check_period			24x7
	notification_options		w,c,r
    register                0
}
# ---------------------------------------------------------------------------- #
# Define DBA groups
# ---------------------------------------------------------------------------- #
define service {
    use                     generic-service
    name                    web-prod-service
	contact_groups			webmasters
	notification_options		w,c,r
    register                0
}
define service {
    use                     generic-service
    name                    web-dev-service
	max_check_attempts		5
	normal_check_interval		10
	is_volatile			0
	contact_groups			webmasters
	notification_interval		240
	notification_period		wakinghours
	check_period			24x7
	notification_options		w,c,r
    register                0
}