2015-05-19 17:31:17 +02:00
|
|
|
<?php
|
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
2015-05-20 16:16:21 +02:00
|
|
|
class Servicegroupsummary extends DataView
|
2015-05-19 17:31:17 +02:00
|
|
|
{
|
2015-05-20 16:16:21 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'hosts_down_handled',
|
|
|
|
'hosts_down_unhandled',
|
|
|
|
'hosts_pending',
|
|
|
|
'hosts_unreachable_handled',
|
|
|
|
'hosts_unreachable_unhandled',
|
|
|
|
'hosts_up',
|
|
|
|
'servicegroup_alias',
|
|
|
|
'servicegroup_name',
|
|
|
|
'services_critical_handled',
|
|
|
|
'services_critical_last_state_change_handled',
|
|
|
|
'services_critical_last_state_change_unhandled',
|
|
|
|
'services_critical_unhandled',
|
|
|
|
'services_ok',
|
|
|
|
'services_ok_last_state_change',
|
|
|
|
'services_pending',
|
|
|
|
'services_pending_last_state_change',
|
2015-05-21 12:38:58 +02:00
|
|
|
'services_severity',
|
2015-05-20 16:16:21 +02:00
|
|
|
'services_total',
|
|
|
|
'services_unknown_handled',
|
|
|
|
'services_unknown_last_state_change_handled',
|
|
|
|
'services_unknown_last_state_change_unhandled',
|
|
|
|
'services_unknown_unhandled',
|
|
|
|
'services_warning_handled',
|
|
|
|
'services_warning_last_state_change_handled',
|
|
|
|
'services_warning_last_state_change_unhandled',
|
|
|
|
'services_warning_unhandled'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-05-20 16:09:30 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2015-05-19 17:31:17 +02:00
|
|
|
public function getFilterColumns()
|
|
|
|
{
|
|
|
|
return array('servicegroup');
|
|
|
|
}
|
2015-05-19 17:50:07 +02:00
|
|
|
|
2015-05-20 16:09:30 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public static function getQueryName()
|
|
|
|
{
|
|
|
|
return 'groupsummary';
|
|
|
|
}
|
|
|
|
|
2015-05-19 17:50:07 +02:00
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getSearchColumns()
|
|
|
|
{
|
|
|
|
return array('servicegroup', 'servicegroup_alias');
|
|
|
|
}
|
2015-05-19 17:31:17 +02:00
|
|
|
}
|