Skip to content

Commit d9ea880

Browse files
authored
Merge pull request #111 from NETWAYS/fix/softstate
Only use hard states for hostgroup and servicegroup
2 parents 3a9cfc7 + dfa2df5 commit d9ea880

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

library/Toplevelview/Model/Hostgroupsummary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function getUnions(): array
168168
'hostgroup_name_ci' => 'hostgroup.name_ci',
169169
'hostgroup_display_name' => 'hostgroup.display_name',
170170
'host_id' => 'host.id',
171-
'host_state' => 'state.soft_state',
171+
'host_state' => 'state.hard_state',
172172
'host_handled' => 'state.is_handled',
173173
'host_reachable' => 'state.is_reachable',
174174
'host_severity' => 'state.severity',
@@ -198,7 +198,7 @@ public function getUnions(): array
198198
'host_in_downtime' => new Expression('NULL'),
199199
'host_severity' => new Expression('0'),
200200
'service_id' => 'service.id',
201-
'service_state' => 'state.soft_state',
201+
'service_state' => 'state.hard_state',
202202
'service_handled' => 'state.is_handled',
203203
'service_reachable' => 'state.is_reachable',
204204
'service_in_downtime' => 'state.in_downtime',

library/Toplevelview/Model/ServicegroupSummary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function getUnions(): array
144144
'servicegroup_name_ci' => 'servicegroup.name_ci',
145145
'servicegroup_display_name' => 'servicegroup.display_name',
146146
'service_id' => 'service.id',
147-
'service_state' => 'state.soft_state',
147+
'service_state' => 'state.hard_state',
148148
'service_handled' => 'state.is_handled',
149149
'service_reachable' => 'state.is_reachable',
150150
'service_severity' => 'state.severity',

0 commit comments

Comments
 (0)