static int SYSTEM_SWAP_PFREE(AGENT_RESULT *result) { double value; if (SYSINFO_RET_OK != get_swap_size(NULL, NULL, NULL, &value, NULL)) return SYSINFO_RET_FAIL; SET_DBL_RESULT(result, value); return SYSINFO_RET_OK; }
static int SYSTEM_SWAP_USED(AGENT_RESULT *result) { zbx_uint64_t value; if (SYSINFO_RET_OK != get_swap_size(NULL, NULL, &value, NULL, NULL)) return SYSINFO_RET_FAIL; SET_UI64_RESULT(result, value); return SYSINFO_RET_OK; }
static int SYSTEM_SWAP_USED(AGENT_RESULT *result) { zbx_uint64_t value; char *error; if (SYSINFO_RET_OK != get_swap_size(NULL, NULL, &value, NULL, NULL, &error)) { SET_MSG_RESULT(result, error); return SYSINFO_RET_FAIL; } SET_UI64_RESULT(result, value); return SYSINFO_RET_OK; }
static int SYSTEM_SWAP_PUSED(AGENT_RESULT *result) { double value; char *error; if (SYSINFO_RET_OK != get_swap_size(NULL, NULL, NULL, NULL, &value, &error)) { SET_MSG_RESULT(result, error); return SYSINFO_RET_FAIL; } SET_DBL_RESULT(result, value); return SYSINFO_RET_OK; }