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 committed Mar 25, 2024
1 parent 10192ca commit 3a5a56f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions library/Cube/CubeRenderer/HostStatusCubeRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,9 @@ protected function getDetailsBaseUrl()

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

foreach ($columns as $column) {
yield "hosts_$column";
yield $column;
}
}
}

0 comments on commit 3a5a56f

Please sign in to comment.