Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2016-11-11 13:19:56 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2016-11-11 13:19:56 +0300
commitec3876765b58e20c312dadf7456189ceb70a226c (patch)
tree7469fe8d3b34a6532fa9855272bdc89cfc07097f /include/sysinfo.h
parent19542ba35aa4a5b0a3a8ed26837e946ebef3f5cc (diff)
...G...... [ZBX-9781] changed vfs.fs.size, vfs.fs.inode checks to be executed in separate process/thread to avoid lockup with stale NFS mounts
[merge ^/branches/3.2 -c 63720]
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r--include/sysinfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h
index 7381a524f86..fd23cdbe3ec 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -282,6 +282,8 @@ int VM_VMEMORY_SIZE(AGENT_REQUEST *request, AGENT_RESULT *result);
int SYSTEM_STAT(AGENT_REQUEST *request, AGENT_RESULT *result);
#endif
+typedef int (*zbx_metric_func_t)(AGENT_REQUEST *request, AGENT_RESULT *result);
+
typedef struct
{
const char *mode;
@@ -289,6 +291,8 @@ typedef struct
}
MODE_FUNCTION;
+int zbx_execute_threaded_metric(zbx_metric_func_t metric_func, AGENT_REQUEST *request, AGENT_RESULT *result);
+
/* the fields used by proc queries */
#define ZBX_SYSINFO_PROC_NONE 0x0000
#define ZBX_SYSINFO_PROC_PID 0x0001