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/linux/cpu.c')
-rw-r--r--src/libs/zbxsysinfo/linux/cpu.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/zbxsysinfo/linux/cpu.c b/src/libs/zbxsysinfo/linux/cpu.c
index 0a0483d4dc4..77ef24e74df 100644
--- a/src/libs/zbxsysinfo/linux/cpu.c
+++ b/src/libs/zbxsysinfo/linux/cpu.c
@@ -18,13 +18,14 @@
**/
#include "zbxsysinfo.h"
+#include "../sysinfo.h"
#include "log.h"
#include "zbxnum.h"
#include "stats.h"
-int SYSTEM_CPU_NUM(AGENT_REQUEST *request, AGENT_RESULT *result)
+int system_cpu_num(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *type;
int name;
@@ -59,7 +60,7 @@ int SYSTEM_CPU_NUM(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-int SYSTEM_CPU_UTIL(AGENT_REQUEST *request, AGENT_RESULT *result)
+int system_cpu_util(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *tmp;
int cpu_num, state, mode;
@@ -127,7 +128,7 @@ int SYSTEM_CPU_UTIL(AGENT_REQUEST *request, AGENT_RESULT *result)
return get_cpustat(result, cpu_num, state, mode);
}
-int SYSTEM_CPU_LOAD(AGENT_REQUEST *request, AGENT_RESULT *result)
+int system_cpu_load(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *tmp;
int mode, per_cpu = 1, cpu_num;
@@ -189,7 +190,7 @@ int SYSTEM_CPU_LOAD(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-int SYSTEM_CPU_SWITCHES(AGENT_REQUEST *request, AGENT_RESULT *result)
+int system_cpu_switches(AGENT_REQUEST *request, AGENT_RESULT *result)
{
int ret = SYSINFO_RET_FAIL;
char line[MAX_STRING_LEN];
@@ -224,7 +225,7 @@ int SYSTEM_CPU_SWITCHES(AGENT_REQUEST *request, AGENT_RESULT *result)
return ret;
}
-int SYSTEM_CPU_INTR(AGENT_REQUEST *request, AGENT_RESULT *result)
+int system_cpu_intr(AGENT_REQUEST *request, AGENT_RESULT *result)
{
int ret = SYSINFO_RET_FAIL;
char line[MAX_STRING_LEN];