Skip to content

Commit

Permalink
SeveritySort: Remove undefined column hosts(_unhandled)_unreachable
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
sukhwinder33445 authored and nilmerg committed Apr 12, 2024
1 parent 6ae49aa commit befa81c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions library/Cube/CubeRenderer/HostStatusCubeRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ protected function getDetailsBaseUrl()

protected function getSeveritySortColumns(): Generator
{
$columns = ['down', 'unreachable'];
foreach ($columns as $column) {
yield "hosts_unhandled_$column";
}

foreach ($columns as $column) {
yield "hosts_$column";
}
yield from ['hosts_unhandled_down', 'hosts_down'];
}
}

0 comments on commit befa81c

Please sign in to comment.