summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxsysinfo/linux/diskspace.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/linux/diskspace.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/linux/diskspace.c')
-rw-r--r--src/libs/zbxsysinfo/linux/diskspace.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libs/zbxsysinfo/linux/diskspace.c b/src/libs/zbxsysinfo/linux/diskspace.c
index 49351916..ec4763e9 100644
--- a/src/libs/zbxsysinfo/linux/diskspace.c
+++ b/src/libs/zbxsysinfo/linux/diskspace.c
@@ -135,17 +135,17 @@
#include "common.h"
#include "sysinfo.h"
-int VFS_FS_PUSED(const char *cmd, const char *mountPoint,double *value)
+int VFS_FS_PUSED(const char *cmd, const char *mountPoint,double *value, const char *msg, int mlen_max)
{
double total;
double used;
- if(SYSINFO_RET_OK != VFS_FS_TOTAL(cmd, mountPoint, &total))
+ if(SYSINFO_RET_OK != VFS_FS_TOTAL(cmd, mountPoint, &total, msg, mlen_max))
{
return SYSINFO_RET_FAIL;
}
- if(SYSINFO_RET_OK != VFS_FS_USED(cmd, mountPoint, &used))
+ if(SYSINFO_RET_OK != VFS_FS_USED(cmd, mountPoint, &used, msg, mlen_max))
{
return SYSINFO_RET_FAIL;
}
@@ -159,17 +159,17 @@ int VFS_FS_PUSED(const char *cmd, const char *mountPoint,double *value)
return SYSINFO_RET_OK;
}
-int VFS_FS_PFREE(const char *cmd, const char *mountPoint,double *value)
+int VFS_FS_PFREE(const char *cmd, const char *mountPoint,double *value, const char *msg, int mlen_max)
{
double total;
double free;
- if(SYSINFO_RET_OK != VFS_FS_TOTAL(cmd, mountPoint, &total))
+ if(SYSINFO_RET_OK != VFS_FS_TOTAL(cmd, mountPoint, &total, msg, mlen_max))
{
return SYSINFO_RET_FAIL;
}
- if(SYSINFO_RET_OK != VFS_FS_FREE(cmd, mountPoint, &free))
+ if(SYSINFO_RET_OK != VFS_FS_FREE(cmd, mountPoint, &free, msg, mlen_max))
{
return SYSINFO_RET_FAIL;
}
@@ -183,7 +183,7 @@ int VFS_FS_PFREE(const char *cmd, const char *mountPoint,double *value)
return SYSINFO_RET_OK;
}
-int VFS_FS_FREE(const char *cmd, const char *mountPoint,double *value)
+int VFS_FS_FREE(const char *cmd, const char *mountPoint,double *value, const char *msg, int mlen_max)
{
#ifdef HAVE_SYS_STATVFS_H
struct statvfs s;
@@ -228,7 +228,7 @@ int VFS_FS_FREE(const char *cmd, const char *mountPoint,double *value)
#endif
}
-int VFS_FS_USED(const char *cmd, const char *mountPoint,double *value)
+int VFS_FS_USED(const char *cmd, const char *mountPoint,double *value, const char *msg, int mlen_max)
{
#ifdef HAVE_SYS_STATVFS_H
struct statvfs s;
@@ -273,7 +273,7 @@ int VFS_FS_USED(const char *cmd, const char *mountPoint,double *value)
#endif
}
-int VFS_FS_TOTAL(const char *cmd, const char *mountPoint,double *value)
+int VFS_FS_TOTAL(const char *cmd, const char *mountPoint,double *value, const char *msg, int mlen_max)
{
#ifdef HAVE_SYS_STATVFS_H
struct statvfs s;