Skip to content

Commit befa81c

Browse files
sukhwinder33445nilmerg
authored andcommitted
SeveritySort: Remove undefined column hosts(_unhandled)_unreachable
Icingadb-web no longer has the unreachable state and the `Hoststatesummary` columns `hosts_unreachable_handled` and `hosts_unreachable_unhandled` are removed. (see: Icinga/icingadb-web#803). The unreachable column is merged as the following: * hosts_down_handled = (down && (handled || ! reachable) * hosts_down_unhandled = (down && ! handled && reachable)
1 parent 6ae49aa commit befa81c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

library/Cube/CubeRenderer/HostStatusCubeRenderer.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,6 @@ protected function getDetailsBaseUrl()
131131

132132
protected function getSeveritySortColumns(): Generator
133133
{
134-
$columns = ['down', 'unreachable'];
135-
foreach ($columns as $column) {
136-
yield "hosts_unhandled_$column";
137-
}
138-
139-
foreach ($columns as $column) {
140-
yield "hosts_$column";
141-
}
134+
yield from ['hosts_unhandled_down', 'hosts_down'];
142135
}
143136
}

0 commit comments

Comments
 (0)