2015-05-19 17:31:17 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
2015-05-19 17:31:17 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
2015-05-20 15:40:49 +02:00
|
|
|
/**
|
|
|
|
* Data view for the host group summary
|
|
|
|
*/
|
|
|
|
class Hostgroupsummary extends DataView
|
2015-05-19 17:31:17 +02:00
|
|
|
{
|
2015-05-20 15:40:49 +02:00
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'hostgroup_alias',
|
|
|
|
'hostgroup_name',
|
|
|
|
'hosts_down_handled',
|
|
|
|
'hosts_down_unhandled',
|
|
|
|
'hosts_pending',
|
2015-05-20 17:03:23 +02:00
|
|
|
'hosts_total',
|
2015-05-20 15:40:49 +02:00
|
|
|
'hosts_unreachable_handled',
|
|
|
|
'hosts_unreachable_unhandled',
|
|
|
|
'hosts_up',
|
|
|
|
'services_critical_handled',
|
|
|
|
'services_critical_unhandled',
|
|
|
|
'services_ok',
|
|
|
|
'services_pending',
|
|
|
|
'services_total',
|
|
|
|
'services_unknown_handled',
|
|
|
|
'services_unknown_unhandled',
|
|
|
|
'services_warning_handled',
|
|
|
|
'services_warning_unhandled'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-05-21 11:24:31 +02:00
|
|
|
public function getSearchColumns()
|
2015-05-20 15:37:24 +02:00
|
|
|
{
|
2017-07-27 15:03:12 +02:00
|
|
|
return array('hostgroup_name', 'hostgroup_alias');
|
2015-05-20 15:37:24 +02:00
|
|
|
}
|
2015-05-21 12:26:27 +02:00
|
|
|
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'hostgroup_alias' => array(
|
|
|
|
'order' => self::SORT_ASC
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2017-07-27 15:03:12 +02:00
|
|
|
|
|
|
|
public function getStaticFilterColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'instance_name',
|
|
|
|
'host', 'host_alias', 'host_display_name', 'host_name',
|
|
|
|
'hostgroup',
|
|
|
|
'service', 'service_description', 'service_display_name',
|
|
|
|
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
|
|
|
);
|
|
|
|
}
|
2015-05-19 17:31:17 +02:00
|
|
|
}
|