Source
/*
** Zabbix
** Copyright (C) 2001-2023 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.
**/
/* for SEC_PER_DAY */
/* for ZBX_MD5_DIGEST_SIZE, md5_byte_t */
/* for zbx_uint64_t struct st_logfile; */
struct st_logfile;
/* the time period after which persistent files used by log */
/* items which are not received in active check list can be */
/* removed */
typedef struct
{
char *key_orig;
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
{
char *key_orig;
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;