mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Hoststatesummary: Don't count acknowledgments if their can't be any
This commit is contained in:
parent
ec5451f627
commit
1bfbb12e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class HoststateSummary extends Host
|
|||
parent::getColumns(),
|
||||
[
|
||||
'hosts_acknowledged' => new Expression(
|
||||
'SUM(CASE WHEN host_state.is_acknowledged = \'n\' THEN 0 ELSE 1 END)'
|
||||
'SUM(CASE WHEN host_state.is_acknowledged = \'y\' THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_active_checks_enabled' => new Expression(
|
||||
'SUM(CASE WHEN host.active_checks_enabled = \'y\' THEN 1 ELSE 0 END)'
|
||||
|
|
|
|||
Loading…
Reference in a new issue