mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
HoststateSummary: Add feature status columns
This commit is contained in:
parent
30a02e1e29
commit
08c5cfde16
1 changed files with 9 additions and 0 deletions
|
|
@ -26,6 +26,15 @@ class HoststateSummary extends Host
|
|||
'hosts_down_unhandled' => new Expression(
|
||||
'SUM(CASE WHEN host_state.soft_state = 1 AND host_state.is_handled = \'n\' THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_event_handler_enabled' => new Expression(
|
||||
'SUM(CASE WHEN host.event_handler_enabled = \'y\' THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_flapping_enabled' => new Expression(
|
||||
'SUM(CASE WHEN host.flapping_enabled = \'y\' THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_notifications_enabled' => new Expression(
|
||||
'SUM(CASE WHEN host.notifications_enabled = \'y\' THEN 1 ELSE 0 END)'
|
||||
),
|
||||
'hosts_pending' => new Expression(
|
||||
'SUM(CASE WHEN host_state.soft_state = 99 THEN 1 ELSE 0 END)'
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue