Source
$timescaledb_error = _('Detected TimescaleDB license does not support compression. Compression is supported in TimescaleDB Community Edition.');
<?php
/*
** Zabbix
** Copyright (C) 2001-2023 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.
**/
/**
* @var CView $this
*/
$this->includeJsFile('administration.housekeeping.edit.js.php');
$html_page = (new CHtmlPage())
->setTitle(_('Housekeeping'))
->setDocUrl(CDocHelper::getUrl(CDocHelper::ADMINISTRATION_HOUSEKEEPING_EDIT));
$form = (new CForm())
->addItem((new CVar(CCsrfTokenHelper::CSRF_TOKEN_NAME, CCsrfTokenHelper::get('housekeeping')))->removeId())
->setId('housekeeping')
->setAction((new CUrl('zabbix.php'))
->setArgument('action', 'housekeeping.update')
->getUrl()
)
->setAttribute('aria-labelledby', CHtmlPage::PAGE_TITLE_ID);
$house_keeper_tab = (new CFormList())
->addRow((new CTag('h4', true, _('Events and alerts')))->addClass('input-section-header'))
->addRow(
new CLabel(_('Enable internal housekeeping'), 'hk_events_mode'),
(new CCheckBox('hk_events_mode'))
->setChecked($data['hk_events_mode'] == 1)
->setAttribute('autofocus', 'autofocus')
)
->addRow(
(new CLabel(_('Trigger data storage period'), 'hk_events_trigger'))->setAsteriskMark(),
(new CTextBox('hk_events_trigger', $data['hk_events_trigger'], false,
DB::getFieldLength('config', 'hk_events_trigger')
))
->setWidth(ZBX_TEXTAREA_TINY_WIDTH)
->setEnabled($data['hk_events_mode'] == 1)
->setAriaRequired()
)
->addRow(
(new CLabel(_('Service data storage period'), 'hk_events_service'))->setAsteriskMark(),
(new CTextBox('hk_events_service', $data['hk_events_service'], false,
DB::getFieldLength('config', 'hk_events_service')
))
->setWidth(ZBX_TEXTAREA_TINY_WIDTH)