Source
static int zbx_get_snmp_response_error(const zbx_snmp_sess_t ssp, const zbx_dc_interface_t *interface, int status,
/*
** Copyright (C) 2001-2024 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/>.
**/
/*
* SNMP Dynamic Index Cache
* ========================
*
* Description
* -----------
*
* Zabbix caches the whole index table for the particular OID separately based on:
* * IP address;
* * port;
* * community string (SNMPv2c);
* * context, security name (SNMPv3).
*
* Zabbix revalidates each index before using it to get a value and rebuilds the index cache for the OID if the
* index is invalid.