Source
'id:hk_history' => '90d', // This should be changed to another custom value after DEV-1673 is fixed.
<?php
/*
** Zabbix
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
require_once dirname(__FILE__).'/common/testFormAdministrationGeneral.php';
/**
* @backup config
*/
class testFormAdministrationGeneralHousekeeper extends testFormAdministrationGeneral {
public $config_link = 'zabbix.php?action=housekeeping.edit';
public $form_selector = 'id:housekeeping-form';
public $default_values = [
// Events and alerts.
'id:hk_events_mode' => true,
'id:hk_events_trigger' => '365d',
'id:hk_events_internal' => '1d',
'id:hk_events_discovery' => '1d',
'id:hk_events_autoreg' => '1d',
// Services.
'id:hk_services_mode' => true,
'id:hk_services' => '365d',
// User sessions.
'id:hk_sessions_mode' => true,
'id:hk_sessions' => '365d',
// History.
'id:hk_history_mode' => true,
'id:hk_history_global' => false,
'id:hk_history' => '90d',
// Trends.
'id:hk_trends_mode' => true,
'id:hk_trends_global' => false,
'id:hk_trends' => '365d'
];
public $db_default_values = [
'hk_events_mode' => 1,
'hk_events_trigger' => '365d',
'hk_events_internal' => '1d',
'hk_events_discovery' => '1d',
'hk_events_autoreg' => '1d',
'hk_services_mode' => 1,
'hk_services' => '365d',
'hk_sessions_mode' => 1,
'hk_sessions' => '365d',