summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-01 13:13:03 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-01 13:13:03 +0000
commitde267adc7399911d3d3339c8aa91bcab381ad50a (patch)
tree6afad4a690191af412cd044d4d7fc3a367cca5a2 /include
parent1bda58e4c0bdca8f16a5b055a9586cc04c63202b (diff)
downloadzabbix-de267adc7399911d3d3339c8aa91bcab381ad50a.tar.gz
zabbix-de267adc7399911d3d3339c8aa91bcab381ad50a.tar.xz
zabbix-de267adc7399911d3d3339c8aa91bcab381ad50a.zip
- optimized sysinfo functions for solaris system (Eugene)
- added support of new sysinfo function interface for solaris (Eugene) - fixed some errors in sysinfo functions for linux system (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2235 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/sysinfo.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h
index 950f9de0..988790fb 100644
--- a/include/sysinfo.h
+++ b/include/sysinfo.h
@@ -102,19 +102,26 @@ int VFS_FS_INODE(const char *cmd, const char *param, unsigned flags, AGENT_R
int VFS_FS_SIZE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int VM_MEMORY_SIZE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_COLLISIONS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int SYSTEM_CPU_SWITCHES(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int SYSTEM_CPU_INTR(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int TCP_LISTEN(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_TCP_LISTEN(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int CHECK_SERVICE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int CHECK_SERVICE_PERF(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int CHECK_PORT(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int CHECK_DNS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
/* internal system functions */
+int EXECUTE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int EXECUTE_STR(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int VM_MEMORY_SHARED(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int VM_MEMORY_TOTAL(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int VM_MEMORY_BUFFERS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int VM_MEMORY_CACHED(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int VM_MEMORY_FREE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_IN_BYTES(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_IN_PACKETS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_IN_ERRORS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_OUT_BYTES(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_OUT_PACKETS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+int NET_IF_OUT_ERRORS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int SYSTEM_CPU_IDLE1(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int SYSTEM_CPU_IDLE5(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
@@ -140,10 +147,6 @@ int VFS_FS_PFREE(const char *cmd, const char *param, unsigned flags, AGENT_RESUL
int VFS_FS_PUSED(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int DISK_IO(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int DISK_RIO(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int DISK_WIO(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int DISK_RBLK(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
-int DISK_WBLK(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int VFS_FS_INODE_TOTAL(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
int VFS_FS_INODE_FREE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);