diff options
Diffstat (limited to 'src/libs/zbxsysinfo/aix/diskspace.c')
-rw-r--r-- | src/libs/zbxsysinfo/aix/diskspace.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/libs/zbxsysinfo/aix/diskspace.c b/src/libs/zbxsysinfo/aix/diskspace.c index 64517ca45a1..f455a5d08e5 100644 --- a/src/libs/zbxsysinfo/aix/diskspace.c +++ b/src/libs/zbxsysinfo/aix/diskspace.c @@ -88,7 +88,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; @@ -104,7 +104,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; @@ -120,7 +120,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; @@ -136,7 +136,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; @@ -152,7 +152,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; @@ -168,7 +168,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; @@ -188,24 +188,24 @@ 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); } static const char *zbx_get_vfs_name_by_type(int type) @@ -234,7 +234,7 @@ static const char *zbx_get_vfs_name_by_type(int type) return NULL != vfs_names[type] ? vfs_names[type] : "unknown"; } -int VFS_FS_DISCOVERY(AGENT_REQUEST *request, AGENT_RESULT *result) +int vfs_fs_discovery(AGENT_REQUEST *request, AGENT_RESULT *result) { int rc, sz, i, ret = SYSINFO_RET_FAIL; struct vmount *vms = NULL, *vm; @@ -290,7 +290,7 @@ error: return ret; } -static int vfs_fs_get(AGENT_REQUEST *request, AGENT_RESULT *result) +static int vfs_fs_get_local(AGENT_REQUEST *request, AGENT_RESULT *result) { int rc, sz, i, ret = SYSINFO_RET_FAIL; struct vmount *vms = NULL, *vm; @@ -422,7 +422,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); } |