Source
static int tm_process_tasks(zbx_ipc_async_socket_t *rtc, time_t now, const zbx_config_comms_args_t *config_comms,
/*
** 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/>.
**/
/**************************************************************************************
* *
* Purpose: executes remote command task *
* *
* Parameters: taskid - [IN] *
* clock - [IN] task creation time *
* ttl - [IN] task expiration period in seconds *
* now - [IN] *
* config_timeout - [IN] *
* config_trapper_timeout - [IN] *
* config_source_ip - [IN] *
* config_ssh_key_location - [IN] *
* config_enable_remote_commands - [IN] *
* config_log_remote_commands - [IN] *
* config_enable_global_scripts - [IN] *
* get_config_forks - [IN] *
* program_type - [IN] *
* *
* Return value: SUCCEED - remote command was executed *
* FAIL - otherwise *
* *
**************************************************************************************/