Source
int item_preproc_snmp_walk_to_value(zbx_pp_cache_t *cache, zbx_variant_t *value, const char *params, char **errmsg);
/*
** Zabbix
** Copyright (C) 2001-2022 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.
**/
/* disabling debugging messages from Net-SNMP library */
typedef struct
{
char *field_name;
char *oid_prefix;
int format_flag;
}
zbx_snmp_walk_to_json_param_t;
ZBX_VECTOR_DECL(snmp_walk_to_json_param, zbx_snmp_walk_to_json_param_t)
typedef struct
{
char *key;
char *value;
}
zbx_snmp_walk_json_output_value_t;
ZBX_PTR_VECTOR_DECL(snmp_walk_to_json_output_val, zbx_snmp_walk_json_output_value_t *)
typedef enum
{
ZBX_SNMP_TYPE_UNDEFINED,
ZBX_SNMP_TYPE_HEX
}
zbx_snmp_type_t;
typedef struct
{
char *oid;
char *value;
zbx_snmp_type_t type;