lsfilter: Add support for non-timestamp date formats
[ninja.git] / test / unit_test / reports / interleaving_service.tst
blobfee3dd5b6fcf30ebacacf6024d5fdf8e4361e7e0
1 description = Interleaving downtimes and multiple states, services
2 logfile = interleaving_states_service.log
4 global_vars {
5         start_time = 400000001
6         end_time = 400005000
9 worst state, down as down {
10         report_type = services
11         objects {
12                 host1;PING
13                 host2;PING
14                 host2;PING2
15         }
16         correct {
17                 TIME_OK_UNSCHEDULED = 139
18                 TIME_OK_SCHEDULED = 0
19                 TIME_WARNING_UNSCHEDULED = 700
20                 TIME_WARNING_SCHEDULED = 859
21                 TIME_CRITICAL_UNSCHEDULED = 2401
22                 TIME_CRITICAL_SCHEDULED = 900
23         }
25 worst state, down as up {
26         report_type = services
27         objects {
28                 host1;PING
29                 host2;PING
30                 host2;PING2
31         }
32         scheduleddowntimeasuptime = 1
33         correct {
34                 TIME_OK_UNSCHEDULED = 998
35                 TIME_OK_SCHEDULED = 0
36                 TIME_WARNING_UNSCHEDULED = 1600
37                 TIME_WARNING_SCHEDULED = 0
38                 TIME_CRITICAL_UNSCHEDULED = 2401
39                 TIME_CRITICAL_SCHEDULED = 0
40         }
42 best state, down as down {
43         report_type = services
44         objects {
45                 host1;PING
46                 host2;PING
47                 host2;PING2
48         }
49         sla_mode = 2
50         correct {
51                 TIME_OK_UNSCHEDULED = 2799
52                 TIME_OK_SCHEDULED = 404
53                 TIME_WARNING_UNSCHEDULED = 1100
54                 TIME_WARNING_SCHEDULED = 696
55                 TIME_CRITICAL_UNSCHEDULED = 0
56                 TIME_CRITICAL_SCHEDULED = 0
57         }
59 best state, down as up {
60         report_type = services
61         objects {
62                 host1;PING
63                 host2;PING
64                 host2;PING2
65         }
66         scheduleddowntimeasuptime = 1
67         sla_mode = 2
68         correct {
69                 TIME_OK_UNSCHEDULED = 2799
70                 TIME_OK_SCHEDULED = 1100
71                 TIME_WARNING_UNSCHEDULED = 1100
72                 TIME_WARNING_SCHEDULED = 0
73                 TIME_CRITICAL_UNSCHEDULED = 0
74                 TIME_CRITICAL_SCHEDULED = 0
75         }
78 # bug #8142
79 worst state, down as down, previous dt exist {
80         start_time = 400004800
81         end_time = 400005800
82         report_type = services
83         objects {
84                 host1;PING
85         }
86         scheduleddowntimeasuptime = 0
87         correct {
88                 TIME_WARNING_UNSCHEDULED = 200
89                 TIME_CRITICAL_UNSCHEDULED = 500
90                 TIME_CRITICAL_SCHEDULED = 300
91         }