if serverConnectors[idx], err = serverconnector.New(manager, addresses[i], hostnames[j], &agent.Options); err != nil {
** 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.
"git.zabbix.com/ap/plugin-support/conf"
"git.zabbix.com/ap/plugin-support/log"
"git.zabbix.com/ap/plugin-support/plugin/comms"
"zabbix.com/internal/agent"
"zabbix.com/internal/agent/keyaccess"
"zabbix.com/internal/agent/remotecontrol"
"zabbix.com/internal/agent/resultcache"
"zabbix.com/internal/agent/scheduler"
"zabbix.com/internal/agent/serverconnector"
"zabbix.com/internal/agent/serverlistener"
"zabbix.com/internal/agent/statuslistener"
"zabbix.com/internal/monitor"
type AgentUserParamOption struct {
UserParameter []string `conf:"optional"`
const remoteCommandSendingTimeout = time.Second
var manager *scheduler.Manager
var listeners []*serverlistener.ServerListener
var serverConnectors []*serverconnector.Connector
var closeChan = make(chan bool)
var stopChan = make(chan bool)
func processLoglevelIncreaseCommand(c *remotecontrol.Client) (err error) {
if log.IncreaseLogLevel() {