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:
Diffstat (limited to 'src/libs/zbxsysinfo/hpux/diskspace.c')
-rw-r--r--src/libs/zbxsysinfo/hpux/diskspace.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/libs/zbxsysinfo/hpux/diskspace.c b/src/libs/zbxsysinfo/hpux/diskspace.c
index 138f8d6de94..6cc119a97d8 100644
--- a/src/libs/zbxsysinfo/hpux/diskspace.c
+++ b/src/libs/zbxsysinfo/hpux/diskspace.c
@@ -79,7 +79,7 @@ static int get_fs_size_stat(const char *fs, zbx_uint64_t *total, zbx_uint64_t *f
#undef ZBX_BSIZE
}
-static int VFS_FS_USED(const char *fs, AGENT_RESULT *result)
+static int vfs_fs_used(const char *fs, AGENT_RESULT *result)
{
zbx_uint64_t value;
char *error;
@@ -95,7 +95,7 @@ static int VFS_FS_USED(const char *fs, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-static int VFS_FS_FREE(const char *fs, AGENT_RESULT *result)
+static int vfs_fs_free(const char *fs, AGENT_RESULT *result)
{
zbx_uint64_t value;
char *error;
@@ -111,7 +111,7 @@ static int VFS_FS_FREE(const char *fs, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-static int VFS_FS_TOTAL(const char *fs, AGENT_RESULT *result)
+static int vfs_fs_total(const char *fs, AGENT_RESULT *result)
{
zbx_uint64_t value;
char *error;
@@ -127,7 +127,7 @@ static int VFS_FS_TOTAL(const char *fs, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-static int VFS_FS_PFREE(const char *fs, AGENT_RESULT *result)
+static int vfs_fs_pfree(const char *fs, AGENT_RESULT *result)
{
double value;
char *error;
@@ -143,7 +143,7 @@ static int VFS_FS_PFREE(const char *fs, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-static int VFS_FS_PUSED(const char *fs, AGENT_RESULT *result)
+static int vfs_fs_pused(const char *fs, AGENT_RESULT *result)
{
double value;
char *error;
@@ -159,7 +159,7 @@ static int VFS_FS_PUSED(const char *fs, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-static int vfs_fs_size(AGENT_REQUEST *request, AGENT_RESULT *result)
+static int vfs_fs_size_local(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *fsname, *mode;
@@ -179,27 +179,27 @@ static int vfs_fs_size(AGENT_REQUEST *request, AGENT_RESULT *result)
}
if (NULL == mode || '\0' == *mode || 0 == strcmp(mode, "total")) /* default parameter */
- return VFS_FS_TOTAL(fsname, result);
+ return vfs_fs_total(fsname, result);
if (0 == strcmp(mode, "free"))
- return VFS_FS_FREE(fsname, result);
+ return vfs_fs_free(fsname, result);
if (0 == strcmp(mode, "pfree"))
- return VFS_FS_PFREE(fsname, result);
+ return vfs_fs_pfree(fsname, result);
if (0 == strcmp(mode, "used"))
- return VFS_FS_USED(fsname, result);
+ return vfs_fs_used(fsname, result);
if (0 == strcmp(mode, "pused"))
- return VFS_FS_PUSED(fsname, result);
+ return vfs_fs_pused(fsname, result);
SET_MSG_RESULT(result, zbx_strdup(NULL, "Invalid second parameter."));
return SYSINFO_RET_FAIL;
}
-int VFS_FS_SIZE(AGENT_REQUEST *request, AGENT_RESULT *result)
+int vfs_fs_size(AGENT_REQUEST *request, AGENT_RESULT *result)
{
- return zbx_execute_threaded_metric(vfs_fs_size, request, result);
+ return zbx_execute_threaded_metric(vfs_fs_size_local, request, result);
}
-int VFS_FS_DISCOVERY(AGENT_REQUEST *request, AGENT_RESULT *result)
+int vfs_fs_discovery(AGENT_REQUEST *request, AGENT_RESULT *result)
{
struct mntent *mt;
FILE *f;
@@ -235,7 +235,7 @@ int VFS_FS_DISCOVERY(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-static int vfs_fs_get(AGENT_REQUEST *request, AGENT_RESULT *result)
+static int vfs_fs_get_local(AGENT_REQUEST *request, AGENT_RESULT *result)
{
struct mntent *mt;
FILE *f;
@@ -350,7 +350,7 @@ out:
return ret;
}
-int VFS_FS_GET(AGENT_REQUEST *request, AGENT_RESULT *result)
+int vfs_fs_get(AGENT_REQUEST *request, AGENT_RESULT *result)
{
- return zbx_execute_threaded_metric(vfs_fs_get, request, result);
+ return zbx_execute_threaded_metric(vfs_fs_get_local, request, result);
}