2 active_checks_enabled 1
6 contact_groups test_contact
7 event_handler_enabled 1
8 failure_prediction_enabled 1
9 flap_detection_enabled 1
13 notification_interval 1
14 notification_options w,u,c,r,f,s
15 notification_period 24x7
16 notifications_enabled 1
19 passive_checks_enabled 1
22 retain_nonstatus_information 1
23 retain_status_information 1
29 check_command check_service!ok
31 service_description test_ok_0
36 # We define a simple database 1 or database 2,
37 # so we need db1 and db2 service
39 check_command check_service!ok
41 service_description db1
47 check_command check_service!ok
49 service_description db2
54 check_command check_service!ok
56 service_description web1
61 check_command check_service!ok
63 service_description web2
69 check_command check_service!ok
71 service_description lvs1
77 check_command check_service!ok
79 service_description lvs2
84 check_command bp_rule!test_host_0,db1|test_host_0,db2
86 service_description Simple_Or
92 check_command bp_rule!test_host_0,db1&test_host_0,db2
94 service_description Simple_And
100 check_command bp_rule!1 of: test_host_0,db1|test_host_0,db2
101 host_name test_host_0
102 service_description Simple_1Of
108 check_command bp_rule!(test_host_0,db1|test_host_0,db2) & (test_host_0,web1|test_host_0,web2) & (test_host_0,lvs1|test_host_0,lvs2)
109 host_name test_host_0
110 service_description ERP
115 check_command bp_rule!1 of: test_host_0,db1|test_host_0,db2
116 host_name test_host_0
117 service_description Simple_1Of
121 check_command bp_rule!test_host_0,db1
122 host_name test_host_0
123 service_description Simple_1Of_simpl
127 # Error! unknown service test_host_0,db3
129 check_command bp_rule!1 of: test_host_0,db1|test_host_0,db3
130 host_name test_host_0
131 service_description Simple_1Of_1unk_svc
135 # Error! unknown services test_host_0,web100 and test_host_0,lvs100
137 check_command bp_rule!(test_host_0,db1|test_host_0,db2) & (test_host_0,web1|test_host_0,web100) & (test_host_0,lvs1|test_host_0,lvs100)
138 host_name test_host_0
139 service_description ERP_unk_svc
143 # Error! unknown host test_host_9
145 check_command bp_rule!1 of: test_host_9|test_host_0,db2
146 host_name test_host_0
147 service_description Simple_1Of_1unk_host