mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Hoststatesummary: Count hosts, not their states
This commit is contained in:
parent
fa8ab3673b
commit
6fbad0b502
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class HoststateSummary extends Host
|
|||
. ' AND host_state.is_acknowledged = \'n\' THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_total' => new Expression(
|
||||
'SUM(CASE WHEN host_state.soft_state IS NOT NULL THEN 1 ELSE 0 END)'
|
||||
'SUM(CASE WHEN host.id IS NOT NULL THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_unreachable' => new Expression(
|
||||
'SUM(CASE WHEN host_state.soft_state = 2 THEN 1 ELSE 0 END)'
|
||||
|
|
|
|||
Loading…
Reference in a new issue