Debian Codegraph @

t-tap/smallconfig/minimal.cfg

raw
1 define host {
2 host_name host1
3 alias host1 test
4 address 192.168.1.1
5 max_check_attempts 2
6 check_period none
7 contacts nagiosadmin
8 notification_interval 60
9 notification_period none
10 hostgroups hostgroup1
11 }
12
13 define host {
14 host_name hostveryrecent
15 alias hostveryrecent test
16 address 192.168.1.1
17 max_check_attempts 2
18 check_period none
19 contacts nagiosadmin
20 notification_interval 60
21 notification_period none
22 hostgroups hostgroup1
23 }
24
25 define hostgroup {
26 hostgroup_name hostgroup1
27 }
28
29 define hostgroup {
30 hostgroup_name hostgroup2
31 }
32
33 define service {
34 host_name host1
35 service_description Dummy service
36 check_command check_me
37 max_check_attempts 3
38 check_interval 32
39 retry_interval 1
40 check_period none
41 notification_interval 60
42 notification_period none
43 contacts nagiosadmin
44 }
45
46 define service {
47 host_name host1
48 service_description Dummy service2
49 check_command check_me
50 max_check_attempts 3
51 check_interval 32
52 retry_interval 1
53 check_period none
54 notification_interval 60
55 notification_period none
56 contacts nagiosadmin
57 }
58
59 define service {
60 host_name host1
61 service_description Uses important check command
62 check_command check_me!with some parameters
63 max_check_attempts 5
64 check_interval 15
65 retry_interval 1
66 check_period none
67 notification_interval 65
68 notification_period none
69 contacts nagiosadmin
70 use service-distributed
71 }
72
73 define service {
74 name service-distributed
75 check_command !set_to_stale
76 register 0
77 }
78
79 define command {
80 command_name set_to_stale
81 command_line /usr/local/nagios/libexec/set_to_stale
82 }
83
84 define command {
85 command_name check_me
86 command_line /usr/local/nagios/libexec/check_me
87 }
88
89 define command {
90 command_name with_continuation_lines
91 command_line $USER1$/check_foo one\
92 two
93 }
94
95 define command {
96 command_name multiple_continuation_lines_with_spaces_intermingled
97 command_line \
98 check_nrpe_arg!30!\
99 check_fs_ping!/mnt/account-p,/mnt/prepro-p,/mnt/webapp-ssl,/mnt/rollout-p
100 }
101
102 define timeperiod {
103 timeperiod_name none
104 alias Nothing
105 }
106
107 define timeperiod {
108 timeperiod_name 24x7
109 alias 24x7 base on weekdays
110 monday 00:00-24:00
111 tuesday 00:00-24:00
112 wednesday 00:00-24:00
113 thursday 00:00-24:00
114 friday 00:00-24:00
115 saturday 00:00-24:00
116 sunday 00:00-24:00
117 }
118
119 define timeperiod {
120 timeperiod_name sunday_only
121 alias Avoid time clock change hours
122 sunday 00:00-01:15,03:15-22:00
123 }
124
125 define timeperiod {
126 timeperiod_name weekly_complex
127 alias Complex weekly timeperiods
128 monday 01:15-23:15
129 tuesday 01:15-23:15
130 wednesday 01:15-23:15
131 thursday 01:15-23:15
132 friday 01:15-23:15
133 saturday 00:00-22:00,23:00-24:00
134 sunday 00:00-09:45,14:15-24:00
135 }
136
137
138 define timeperiod{
139 timeperiod_name Test_exclude
140 alias Test for exclude timeperiod
141 tuesday -1 - monday 1 16:30-24:00
142 exclude myexclude
143 }
144
145
146 define timeperiod{
147 timeperiod_name myexclude
148 alias myexclude
149 april 1 - august 16 00:00-24:00
150 saturday -1 - monday 1 16:00-24:00
151 }
152
153 define timeperiod{
154 timeperiod_name Test_exclude2
155 alias Test2 for exclude timeperiod
156 tuesday 2 16:30-24:00
157 exclude myexclude2
158 }
159
160 define timeperiod{
161 timeperiod_name myexclude2
162 alias myexclude2
163 tuesday 00:00-23:58
164 }
165
166
167 define timeperiod{
168 timeperiod_name Test_exclude3
169 alias Test3 for exclude timeperiod
170 tuesday 2 16:30-24:00
171 exclude myexclude3
172 }
173
174 define timeperiod{
175 timeperiod_name myexclude3
176 alias myexclude3
177 april 1 - august 16 00:00-24:00
178 }
179
180 define timeperiod{
181 timeperiod_name Test_exclude4
182 alias Test for exclude timeperiod
183 tuesday -1 - monday 1 16:30-24:00
184 exclude myexclude4
185 }
186
187
188 define timeperiod{
189 timeperiod_name myexclude4
190 alias myexclude4
191 april 1 - august 16 00:00-24:00
192 }
193
194
195 define timeperiod{
196 timeperiod_name exclude_always
197 alias exclude_always
198 monday 00:00-24:00
199 exclude 24x7
200 }
201
202 define contact {
203 contact_name nagiosadmin
204 host_notifications_enabled 0
205 service_notifications_enabled 0
206 host_notification_period none
207 service_notification_period none
208 host_notification_options d,u,f,r,s
209 service_notification_options w,u,c,r,f,s
210 host_notification_commands notify-none
211 service_notification_commands notify-none
212 }
213
214 define command {
215 command_name notify-none
216 command_line /usr/local/nagios/notifications/notify-none
217 }
218
219 define contact {
220 contact_name second
221 host_notifications_enabled 0
222 service_notifications_enabled 0
223 host_notification_period none
224 service_notification_period none
225 host_notification_options d,u,f,r,s
226 service_notification_options w,u,c,r,f,s
227 host_notification_commands notify-none
228 service_notification_commands notify-none
229 }
230
231 define contactgroup {
232 contactgroup_name causetestfailure
233 alias This causes a test failure by having a comma separated list before the empty contactgroup
234 members nagiosadmin,second
235 }
236
237 define contactgroup {
238 contactgroup_name empty
239 alias No members defined - this should pass validation
240 }
241