Source
xxxxxxxxxx
void zbx_remove_from_persistent_inactive_list(zbx_vector_persistent_inactive_t *inactive_vec, zbx_uint64_t itemid);
/*
** 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/>.
**/
/* for MD5 sum representation with hex-digits */
typedef struct
{
zbx_uint64_t itemid;
char *persistent_file_name;
/* data for writing into persistent file */
char *filename;
int mtime;
int seq;
int incomplete;
int copy_of;
zbx_uint64_t dev;
zbx_uint64_t ino_lo;
zbx_uint64_t ino_hi;
zbx_uint64_t size;
zbx_uint64_t processed_size;
int md5_block_size;
md5_byte_t first_block_md5[ZBX_MD5_DIGEST_SIZE];
zbx_uint64_t last_block_offset;
md5_byte_t last_block_md5[ZBX_MD5_DIGEST_SIZE];
}
zbx_pre_persistent_t;
ZBX_VECTOR_DECL(pre_persistent, zbx_pre_persistent_t)
typedef struct
{
zbx_uint64_t itemid;
time_t not_received_time; /* time the item was not received anymore */
/* in the list of active checks */
char *persistent_file_name;
}
zbx_persistent_inactive_t;
ZBX_VECTOR_DECL(persistent_inactive, zbx_persistent_inactive_t)
int zbx_remove_persistent_file(const char *pathname, char **error);
void zbx_write_persistent_files(zbx_vector_pre_persistent_t *prep_vec);