Source
47
47
void zbx_script_init(zbx_script_t *script);
48
48
void zbx_script_clean(zbx_script_t *script);
49
49
int zbx_check_script_permissions(zbx_uint64_t groupid, zbx_uint64_t hostid);
50
50
int zbx_check_script_user_permissions(zbx_uint64_t userid, zbx_uint64_t hostid, zbx_script_t *script);
51
51
int zbx_db_fetch_webhook_params(zbx_uint64_t scriptid, zbx_vector_ptr_pair_t *params, char *error,
52
52
size_t error_len);
53
53
void zbx_webhook_params_pack_json(const zbx_vector_ptr_pair_t *params, char **params_json);
54
54
int zbx_script_prepare(zbx_script_t *script, const zbx_uint64_t *hostid, char *error, size_t max_error_len);
55
55
int zbx_script_execute(const zbx_script_t *script, const zbx_dc_host_t *host, const char *params,
56
56
int config_timeout, int config_trapper_timeout, const char *config_source_ip,
57
-
const char *config_ssh_key_location, zbx_get_config_forks_f get_config_forks,
58
-
int config_enable_global_scripts, unsigned char program_type, char **result, char *error, size_t max_error_len, char **debug);
57
+
const char *config_ssh_key_location, int config_enable_global_scripts,
58
+
zbx_get_config_forks_f get_config_forks, unsigned char program_type, char **result, char *error,
59
+
size_t max_error_len, char **debug);
59
60
zbx_uint64_t zbx_script_create_task(const zbx_script_t *script, const zbx_dc_host_t *host, zbx_uint64_t alertid,
60
61
int now);
61
62
int zbx_init_remote_commands_cache(char **error);
62
63
void zbx_deinit_remote_commands_cache(void);
63
64
void zbx_process_command_results(struct zbx_json_parse *jp);
64
65
void zbx_remote_commans_prepare_to_send(struct zbx_json *json, zbx_uint64_t hostid);
65
66
​
66
67
#endif