Source
xxxxxxxxxx
DBexecute('UPDATE proxy_rtdata SET version=50401, compatibility=3 WHERE proxyid='.zbx_dbstr($passive_proxyids['passive_unsupported']));
<?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/>.
**/
class Proxies {
/**
* Names of enabled hosts, monitored by proxies.
*
* @var array
*/
private static $enabled_hosts = [
'enabled_host1',
'enabled_host2',
'enabled_host3',
'enabled_host4',
'enabled_host5',
'enabled_host6',
'enabled_host7',
'enabled_host8'
];
/**
* Names of disabled hosts, monitored by proxies.
*
* @var array
*/
private static $disabled_hosts = [
'disabled_host1',
'disabled_host2',
'disabled_host3',
'disabled_host4',
'disabled_host5',
'disabled_host6',
'disabled_host7',
'disabled_host8'
];
/**
* Names of active proxies for proxy tests.
*
* @var array
*/
private static $active_proxies = [
'active_proxy1',
'active_proxy2',
'active_proxy3',
'active_proxy4',
'active_proxy5',
'active_proxy6',
'active_proxy7',
'active_current',
'active_unknown',
'Active proxy 1',
'Active proxy 2',
'Active proxy 3',
'Active proxy to delete',
'Proxy_1 for filter',
'Proxy_2 for filter'
];
/**
* Names of passive proxies for proxy tests.
*
* @var array
*/
private static $passive_proxies = [
'passive_proxy1',
'passive_proxy2',
'passive_proxy3',
'passive_proxy4',
'passive_proxy5',
'passive_proxy6',
'passive_proxy7',
'passive_outdated',
'passive_unsupported',
'Passive proxy 1',
'Passive proxy 2',
'Passive proxy 3',