/* ** 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/>. **/ package zbxlib /* #cgo LDFLAGS: ${SRCDIR}/../../../zabbix_agent/logfiles/libzbxlogfiles.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxnum/libzbxnum.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxstr/libzbxstr.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxfile/libzbxfile.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxparam/libzbxparam.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxexpr/libzbxexpr.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxip/libzbxip.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxcomms/libzbxcomms.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxbincommon/libzbxbincommon.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxcommon/libzbxcommon.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxcrypto/libzbxcrypto.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxthreads/libzbxthreads.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxmutexs/libzbxmutexs.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxnix/libzbxnix.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxhttp/libzbxhttp.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxcompress/libzbxcompress.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxregexp/libzbxregexp.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxsysinfo/libzbxagentsysinfo.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxsysinfo/common/libcommonsysinfo.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxsysinfo/simple/libsimplesysinfo.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxexec/libzbxexec.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxalgo/libzbxalgo.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxjson/libzbxjson.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxsysinfo/osx/libspechostnamesysinfo.a #cgo LDFLAGS: ${SRCDIR}/../../../libs/zbxsysinfo/osx/libspecsysinfo.a #cgo pcre LDFLAGS: -lz -lpcre -lresolv #cgo pcre2 LDFLAGS: -lz -lpcre2-8 -lresolv #cgo LDFLAGS: -lz -lresolv #include "zbxsysinfo.h" #include "zbxcomms.h" #include "zbxlog.h" #include "../src/zabbix_agent/metrics/metrics.h" #include "../src/zabbix_agent/logfiles/logfiles.h" typedef zbx_active_metric_t* ZBX_ACTIVE_METRIC_LP; typedef zbx_vector_ptr_t * zbx_vector_ptr_lp_t; typedef zbx_vector_expression_t * zbx_vector_expression_lp_t; int CONFIG_TCP_MAX_BACKLOG_SIZE = SOMAXCONN; zbx_metric_t parameters_agent[] = {NULL}; zbx_metric_t parameters_specific[] = {NULL}; int zbx_procstat_collector_started(void) { return FAIL; } int zbx_procstat_get_util(const char *procname, const char *username, const char *cmdline, zbx_uint64_t flags, int period, int type, double *value, char **errmsg) { return FAIL; } int get_cpustat(AGENT_RESULT *result, int cpu_num, int state, int mode) { return SYSINFO_RET_FAIL; } char *zbx_strerror_from_system(zbx_syserror_t error) { return zbx_strerror(errno); } */ import "C"