mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
GroupsummaryQuery: add columns
hosts_up_last_state_change hosts_pending_last_state_change hosts_down_last_state_change_handled hosts_unreachable_last_state_change_handled hosts_down_last_state_change_unhandled hosts_unreachable_last_state_change_unhandled refs #8860
This commit is contained in:
parent
59753acece
commit
43d8968bd2
@ -19,6 +19,12 @@ class GroupSummaryQuery extends IdoQuery
|
|||||||
'hosts_down_handled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime != 0 THEN 1 ELSE 0 END)',
|
'hosts_down_handled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime != 0 THEN 1 ELSE 0 END)',
|
||||||
'hosts_down_unhandled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
'hosts_down_unhandled' => 'SUM(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 THEN 1 ELSE 0 END)',
|
||||||
'hosts_pending' => 'SUM(CASE WHEN object_type = \'host\' AND state = 99 THEN 1 ELSE 0 END)',
|
'hosts_pending' => 'SUM(CASE WHEN object_type = \'host\' AND state = 99 THEN 1 ELSE 0 END)',
|
||||||
|
'hosts_up_last_state_change' => 'MAX(CASE WHEN object_type = \'host\' AND state = 0 THEN state_change ELSE 0 END)',
|
||||||
|
'hosts_pending_last_state_change' => 'MAX(CASE WHEN object_type = \'host\' AND state = 99 THEN state_change ELSE 0 END)',
|
||||||
|
'hosts_down_last_state_change_handled' => 'MAX(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime != 0 THEN state_change ELSE 0 END)',
|
||||||
|
'hosts_unreachable_last_state_change_handled' => 'MAX(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime != 0 THEN state_change ELSE 0 END)',
|
||||||
|
'hosts_down_last_state_change_unhandled' => 'MAX(CASE WHEN object_type = \'host\' AND state = 1 AND acknowledged + in_downtime = 0 THEN state_change ELSE 0 END)',
|
||||||
|
'hosts_unreachable_last_state_change_unhandled' => 'MAX(CASE WHEN object_type = \'host\' AND state = 2 AND acknowledged + in_downtime = 0 THEN state_change ELSE 0 END)',
|
||||||
'hostgroup_name' => 'hostgroup_name',
|
'hostgroup_name' => 'hostgroup_name',
|
||||||
'hostgroup_alias' => 'hostgroup_alias',
|
'hostgroup_alias' => 'hostgroup_alias',
|
||||||
'hostgroup' => 'hostgroup'
|
'hostgroup' => 'hostgroup'
|
||||||
|
@ -25,6 +25,12 @@ class Groupsummary extends DataView
|
|||||||
'hosts_down_handled',
|
'hosts_down_handled',
|
||||||
'hosts_down_unhandled',
|
'hosts_down_unhandled',
|
||||||
'hosts_pending',
|
'hosts_pending',
|
||||||
|
'hosts_up_last_state_change',
|
||||||
|
'hosts_pending_last_state_change',
|
||||||
|
'hosts_down_last_state_change_handled',
|
||||||
|
'hosts_unreachable_last_state_change_handled',
|
||||||
|
'hosts_down_last_state_change_unhandled',
|
||||||
|
'hosts_unreachable_last_state_change_unhandled',
|
||||||
'services_total',
|
'services_total',
|
||||||
'services_ok',
|
'services_ok',
|
||||||
'services_unknown',
|
'services_unknown',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user