File: hosts.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 (270 lines) | stat: -r--r--r-- 6,227 bytes parent folder | download | duplicates (8)
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
################################################################################
# Sample object config file for Nagios 
#
# Read the documentation for more information on this configuration file.  I've
# provided some comments here, but things may not be so clear without further
# explanation, so make sure to read the HTML documentation!
# 
# Last Modified: 06-11-2004
#
################################################################################


################################################################################
# HOST DEFINITIONS
#
# SYNTAX:
#
################################################################################

# Generic host definition template
define host{
	name				generic-host	; The name of this host template - referenced in other host definitions, used for template recursion/resolution
	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		1	; Process performance data
	retain_status_information	1	; Retain status information across program restarts
	retain_nonstatus_information	1	; Retain non-status information across program restarts

	register			0	; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
	}

# 'novell1' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		novell1
	alias			Novell Server #1
	address			192.168.1.2
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	120
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		novell-admins
	}


# 'novell2' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		novell2
	alias			Novell Server #2
	address			192.168.1.3
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	120
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		novell-admins
	}


# 'nt1' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		nt1
	alias			NT Server #1
	address			192.168.1.4
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	120
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		nt-admins
	}


# 'nt2' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		nt2
	alias			NT Server #2
	address			192.168.1.5
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	120
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		nt-admins
	}


# 'linux1' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		linux1
	alias			Linux Server #1
	address			192.169.1.6
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	480
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		linux-admins
	}


# 'linux2' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		linux2
	alias			Linux Server #2
	address			192.168.0.2
	parents			router1
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	480
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		linux-admins
	}


# 'switch1' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		switch1
	alias			Switch #1
	address			192.168.1.230
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	60
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		switch-admins
	}


# 'switch2' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		switch2
	alias			Switch #2
	address			192.168.1.231
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	60
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		switch-admins
	}


# 'switch3' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		switch3
	alias			Switch #3
	address			192.168.1.232
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	60
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		switch-admins
	}


# 'switch4' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		switch4
	alias			Switch #4
	address			192.168.1.233
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	60
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		switch-admins
	}


# 'switch5' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		switch5
	alias			Switch #5
	address			192.168.1.234
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	60
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		switch-admins
	}


# 'router1' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		router1
	alias			Router #1
	address			192.168.1.254
	check_command		check-host-alive
	max_check_attempts	20
	notification_interval	60
	notification_period	24x7
	notification_options	d,u,r
	contact_groups		router-admins
	}


# 'printer1' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		printer1
	alias			Printer #1
	address			192.168.1.100
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	480
	notification_period	workhours
	contact_groups		printer-admins
	}


# 'printer2' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		printer2
	alias			Printer #2
	address			192.168.1.101
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	480
	notification_period	workhours
	contact_groups		printer-admins
	}


# 'printer3' host definition
define host{
	use			generic-host		; Name of host template to use

	host_name		printer3
	alias			Printer #3
	address			192.168.1.102
	check_command		check-host-alive
	max_check_attempts	10
	notification_interval	480
	notification_period	workhours
	contact_groups		printer-admins
	}