Source
// If proxy uses Global timeouts values - change parameter to global and Reset global values to timeouts page.
<?php
/*
** 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 Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
require_once dirname(__FILE__).'/../../include/CWebTest.php';
require_once dirname(__FILE__).'/../behaviors/CMessageBehavior.php';
class testTimeoutsDisplay extends CWebTest {
/**
* Attach MessageBehavior to the test.
*
* @return array
*/
public function getBehaviors() {
return [
CMessageBehavior::class
];
}
const GLOBAL_DEFAULT = [
'Zabbix agent' => '3s',
'Simple check' => '3s',
'SNMP agent' => '3s',
'External check' => '3s',
'Database monitor' => '3s',
'HTTP agent' => '3s',
'SSH agent' => '3s',
'TELNET agent' => '3s',
'Script' => '3s'
];
const GLOBAL_CUSTOM = [
'Zabbix agent' => '111s',
'Simple check' => '222s',
'SNMP agent' => '333s',
'External check' => '444s',
'Database monitor' => '555s',
'HTTP agent' => '556s',
'SSH agent' => '557s',
'TELNET agent' => '558s',
'Script' => '559s'
];
const GLOBAL_MACROS = [
'Zabbix agent' => '{$MAC1}',
'Simple check' => '{$MAC2}',
'SNMP agent' => '{$MAC3}',
'External check' => '{$MAC4}',
'Database monitor' => '{$MAC5}',
'HTTP agent' => '{$MAC6}',