Avail feature updated
[ninja.git] / test / unit_test / reports / scheddownasup_service.tst
blob4089655f4f5453a1e63983e5e9aaa7629311441f
1 description = count scheduled service downtime as uptime
2 logfile = scheddownasup_service.log
3 global_vars {
4         includesoftstates = 0
7 scheduled service downtime as uptime {
8         start_time = 1202684400
9         end_time = 1202770800
10         report_type = services
11         objects {
12                 testhost;PING
13         }
14         scheduleddowntimeasuptime = 1
15         correct {
16                 TIME_OK_SCHEDULED = 3600
17                 TIME_OK_UNSCHEDULED = 75600
18                 TIME_WARNING_SCHEDULED = 0
19                 TIME_WARNING_UNSCHEDULED = 7200
20         }
23 host in scheduled downtime, service as uptime {
24         start_time = 1202684400
25         end_time = 1202770800
26         report_type = services
27         objects {
28                 testhost2;PING
29         }
30         scheduleddowntimeasuptime = 1
31         correct {
32                 TIME_OK_SCHEDULED = 3600
33                 TIME_OK_UNSCHEDULED = 75600
34                 TIME_WARNING_SCHEDULED = 0
35                 TIME_WARNING_UNSCHEDULED = 7200
36         }
39 host in scheduled downtime, service as uptime, 2 services {
40         start_time = 1202684400
41         end_time = 1202770800
42         report_type = services
43         objects {
44                 testhost;PING
45                 testhost2;PING
46         }
47         scheduleddowntimeasuptime = 1
48         correct {
49                 TIME_OK_SCHEDULED = 3500
50                 TIME_OK_UNSCHEDULED = 75600
51                 TIME_WARNING_SCHEDULED = 0
52                 TIME_WARNING_UNSCHEDULED = 7300
53                 subs {
54                         testhost;PING {
55                                 TIME_OK_SCHEDULED = 3600
56                                 TIME_OK_UNSCHEDULED = 75600
57                                 TIME_WARNING_SCHEDULED = 0
58                                 TIME_WARNING_UNSCHEDULED = 7200
59                         }
60                         testhost2;PING {
61                                 TIME_OK_SCHEDULED = 3600
62                                 TIME_OK_UNSCHEDULED = 75600
63                                 TIME_WARNING_SCHEDULED = 0
64                                 TIME_WARNING_UNSCHEDULED = 7200
65                         }
66                 }
67         }
70 host in dt before report_period starts, service never in dt {
71         start_time = 1202684400
72         end_time = 1202770800
73         report_type = services
74         objects {
75                 testhost3;PING
76         }
77         scheduleddowntimeasuptime = 1
78         correct {
79                 TIME_OK_SCHEDULED = 2100
80                 TIME_CRITICAL_UNSCHEDULED = 84300
81         }
84 host with two services {
85         start_time = 1202684400
86         end_time = 1202770800
87         report_type = services
88         objects {
89                 testhost2;PING
90                 testhost2;PING2
91         }
92         scheduleddowntimeasuptime = 1
93         correct {
94                 TIME_OK_SCHEDULED = 3600
95                 TIME_OK_UNSCHEDULED = 75600
96                 TIME_WARNING_SCHEDULED = 0
97                 TIME_WARNING_UNSCHEDULED = 7200
98                 subs {
99                         testhost2;PING {
100                                 TIME_OK_SCHEDULED = 3600
101                                 TIME_OK_UNSCHEDULED = 75600
102                                 TIME_WARNING_SCHEDULED = 0
103                                 TIME_WARNING_UNSCHEDULED = 7200
104                         }
105                         testhost2;PING2 {
106                                 TIME_OK_SCHEDULED = 3600
107                                 TIME_OK_UNSCHEDULED = 75600
108                                 TIME_WARNING_SCHEDULED = 0
109                                 TIME_WARNING_UNSCHEDULED = 7200
110                         }
111                 }
112         }