Source
xxxxxxxxxx
// 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 __DIR__.'/../../include/CWebTest.php';
require_once __DIR__.'/../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}',
'SSH agent' => '{$MAC7}',
'TELNET agent' => '{$MAC8}',
'Script' => '{$MAC9}'
];
const PROXY_MACROS = [
'Zabbix agent' => '{$PRO1}',
'Simple check' => '{$PRO2}',
'SNMP agent' => '{$PRO3}',
'External check' => '{$PRO4}',
'Database monitor' => '{$PRO5}',
'HTTP agent' => '{$PRO6}',
'SSH agent' => '{$PRO7}',
'TELNET agent' => '{$PRO8}',
'Script' => '{$PRO9}'
];
const PROXY_CUSTOM = [
'Zabbix agent' => '123s',
'Simple check' => '234s',
'SNMP agent' => '345s',
'External check' => '456s',
'Database monitor' => '567s',
'HTTP agent' => '568s',
'SSH agent' => '569s',
'TELNET agent' => '570s',
'Script' => '571s'
];