summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxsysinfo/osf/memory.c
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-10-24 10:08:31 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-10-24 10:08:31 +0000
commit8b33edf43de87f3c401da046aafa4b04a3077b57 (patch)
treea2439a5ab38bb6c8ab35c30d5f5e49e424f3a877 /src/libs/zbxsysinfo/osf/memory.c
parent42db7dd434e76d2d1d3c5b0631091d7d7369e7b0 (diff)
downloadzabbix-8b33edf43de87f3c401da046aafa4b04a3077b57.tar.gz
zabbix-8b33edf43de87f3c401da046aafa4b04a3077b57.tar.xz
zabbix-8b33edf43de87f3c401da046aafa4b04a3077b57.zip
- added new item parameter: message (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2218 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo/osf/memory.c')
-rw-r--r--src/libs/zbxsysinfo/osf/memory.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/zbxsysinfo/osf/memory.c b/src/libs/zbxsysinfo/osf/memory.c
index 7a735b7c..d0c51bc9 100644
--- a/src/libs/zbxsysinfo/osf/memory.c
+++ b/src/libs/zbxsysinfo/osf/memory.c
@@ -135,13 +135,13 @@
#include "common.h"
#include "sysinfo.h"
-int VM_MEMORY_CACHED(const char *cmd, const char *parameter,double *value)
+int VM_MEMORY_CACHED(const char *cmd, const char *parameter,double *value, const char *msg, int mlen_max)
{
#ifdef HAVE_PROC
/* Get CACHED memory in bytes */
-/* return getPROC("/proc/meminfo",8,2);*/
+/* return getPROC("/proc/meminfo",8,2,msg,mlen_max);*/
/* It does not work for both 2.4 and 2.6 */
-/* return getPROC("/proc/meminfo",2,7);*/
+/* return getPROC("/proc/meminfo",2,7,msg,mlen_max);*/
FILE *f;
char *t;
char c[MAX_STRING_LEN];
@@ -171,7 +171,7 @@ int VM_MEMORY_CACHED(const char *cmd, const char *parameter,double *value)
#endif
}
-int VM_MEMORY_BUFFERS(const char *cmd, const char *parameter,double *value)
+int VM_MEMORY_BUFFERS(const char *cmd, const char *parameter,double *value, const char *msg, int mlen_max)
{
#ifdef HAVE_SYSINFO_BUFFERRAM
struct sysinfo info;
@@ -194,7 +194,7 @@ int VM_MEMORY_BUFFERS(const char *cmd, const char *parameter,double *value)
#endif
}
-int VM_MEMORY_SHARED(const char *cmd, const char *parameter,double *value)
+int VM_MEMORY_SHARED(const char *cmd, const char *parameter,double *value, const char *msg, int mlen_max)
{
#ifdef HAVE_SYSINFO_SHAREDRAM
struct sysinfo info;
@@ -231,7 +231,7 @@ int VM_MEMORY_SHARED(const char *cmd, const char *parameter,double *value)
#endif
}
-int VM_MEMORY_TOTAL(const char *cmd, const char *parameter,double *value)
+int VM_MEMORY_TOTAL(const char *cmd, const char *parameter,double *value, const char *msg, int mlen_max)
{
/* Solaris */
#ifdef HAVE_UNISTD_SYSCONF
@@ -312,7 +312,7 @@ int VM_MEMORY_TOTAL(const char *cmd, const char *parameter,double *value)
#endif
}
-int VM_MEMORY_FREE(const char *cmd, const char *parameter,double *value)
+int VM_MEMORY_FREE(const char *cmd, const char *parameter,double *value, const char *msg, int mlen_max)
{
return SYSINFO_RET_FAIL;
}