array( 'order' => self::SORT_ASC ), 'host_address' => array( 'columns' => array( 'host_ipv4' ), 'order' => self::SORT_ASC ), 'host_last_state_change' => array( 'order' => self::SORT_ASC ), 'host_severity' => array( 'columns' => array( 'host_severity', 'host_last_state_change', ), 'order' => self::SORT_DESC ) ); } public function getFilterColumns() { return array('hostgroup', 'service_problems'); } public function isValidFilterTarget($column) { if ($column[0] === '_' && preg_match('/^_(?:host|service)_/', $column) ) { return true; } return parent::isValidFilterTarget($column); } }