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:
authorAndrea Biscuola <git-no-reply@zabbix.com>2017-07-18 15:55:06 +0300
committerAndrea Biscuola <git-no-reply@zabbix.com>2017-07-18 15:55:06 +0300
commit2cc1a9d9390cebd5776f36948b42fb61af9cfc0f (patch)
tree450197a2ad6512db60ae6765f2a0834ec772a77d /include/sysinfo.h
parentcc08a5dd7797a72cdff4fabce5131a7ca200b6c0 (diff)
...G...... [ZBXNEXT-3910] Added 'disk' and 'trace' process track for OpenBSD
Introduce two new defines for two more types of monitored processes. in sysinfo.h. They will be used for also the other future commits. Handle processes that are in an uninterruptible sleep (D) and in a stopped state(T). We still keep the series of ifdef for older versions of the OS after the KVM subsystem was moved to the new kern_proc structure. It should be removed in one of the next releases, being nearly 5 years that it was introduced (consider that OpenBSD support a release for only one year).
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r--include/sysinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h
index 8943a3ac31a..1b481ba91d2 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -160,6 +160,8 @@ extern int CONFIG_UNSAFE_USER_PARAMETERS;
#define ZBX_PROC_STAT_RUN 1
#define ZBX_PROC_STAT_SLEEP 2
#define ZBX_PROC_STAT_ZOMB 3
+#define ZBX_PROC_STAT_IOWAIT 4
+#define ZBX_PROC_STAT_TRACE 5
#define ZBX_DO_SUM 0
#define ZBX_DO_MAX 1