diff options
Diffstat (limited to 'src/libs/zbxsysinfo/agent/agent.c')
-rw-r--r-- | src/libs/zbxsysinfo/agent/agent.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libs/zbxsysinfo/agent/agent.c b/src/libs/zbxsysinfo/agent/agent.c index cc04634700a..60f1483750c 100644 --- a/src/libs/zbxsysinfo/agent/agent.c +++ b/src/libs/zbxsysinfo/agent/agent.c @@ -26,25 +26,25 @@ extern ZBX_THREAD_LOCAL char *CONFIG_HOSTNAME; extern char *CONFIG_HOST_METADATA; extern char *CONFIG_HOST_METADATA_ITEM; -static int AGENT_HOSTNAME(AGENT_REQUEST *request, AGENT_RESULT *result); -static int AGENT_HOSTMETADATA(AGENT_REQUEST *request, AGENT_RESULT *result); -static int AGENT_PING(AGENT_REQUEST *request, AGENT_RESULT *result); -static int AGENT_VERSION(AGENT_REQUEST *request, AGENT_RESULT *result); -static int AGENT_VARIANT(AGENT_REQUEST *request, AGENT_RESULT *result); +static int agent_hostname(AGENT_REQUEST *request, AGENT_RESULT *result); +static int agent_hostmetadata(AGENT_REQUEST *request, AGENT_RESULT *result); +static int agent_ping(AGENT_REQUEST *request, AGENT_RESULT *result); +static int agent_version(AGENT_REQUEST *request, AGENT_RESULT *result); +static int agent_variant(AGENT_REQUEST *request, AGENT_RESULT *result); ZBX_METRIC parameters_agent[] = /* KEY FLAG FUNCTION TEST PARAMETERS */ { - {"agent.hostname", 0, AGENT_HOSTNAME, NULL}, - {"agent.hostmetadata", 0, AGENT_HOSTMETADATA, NULL}, - {"agent.ping", 0, AGENT_PING, NULL}, - {"agent.variant", 0, AGENT_VARIANT, NULL}, - {"agent.version", 0, AGENT_VERSION, NULL}, - {"modbus.get", CF_HAVEPARAMS, MODBUS_GET, "tcp://127.0.0.1"}, + {"agent.hostname", 0, agent_hostname, NULL}, + {"agent.hostmetadata", 0, agent_hostmetadata, NULL}, + {"agent.ping", 0, agent_ping, NULL}, + {"agent.variant", 0, agent_variant, NULL}, + {"agent.version", 0, agent_version, NULL}, + {"modbus.get", CF_HAVEPARAMS, modbus_get, "tcp://127.0.0.1"}, {NULL} }; -static int AGENT_HOSTNAME(AGENT_REQUEST *request, AGENT_RESULT *result) +static int agent_hostname(AGENT_REQUEST *request, AGENT_RESULT *result) { ZBX_UNUSED(request); @@ -62,7 +62,7 @@ static int AGENT_HOSTNAME(AGENT_REQUEST *request, AGENT_RESULT *result) return SYSINFO_RET_OK; } -static int AGENT_HOSTMETADATA(AGENT_REQUEST *request, AGENT_RESULT *result) +static int agent_hostmetadata(AGENT_REQUEST *request, AGENT_RESULT *result) { int ret = SYSINFO_RET_OK; @@ -88,7 +88,7 @@ static int AGENT_HOSTMETADATA(AGENT_REQUEST *request, AGENT_RESULT *result) return ret; } -static int AGENT_PING(AGENT_REQUEST *request, AGENT_RESULT *result) +static int agent_ping(AGENT_REQUEST *request, AGENT_RESULT *result) { ZBX_UNUSED(request); @@ -97,7 +97,7 @@ static int AGENT_PING(AGENT_REQUEST *request, AGENT_RESULT *result) return SYSINFO_RET_OK; } -static int AGENT_VERSION(AGENT_REQUEST *request, AGENT_RESULT *result) +static int agent_version(AGENT_REQUEST *request, AGENT_RESULT *result) { ZBX_UNUSED(request); @@ -106,7 +106,7 @@ static int AGENT_VERSION(AGENT_REQUEST *request, AGENT_RESULT *result) return SYSINFO_RET_OK; } -static int AGENT_VARIANT(AGENT_REQUEST *request, AGENT_RESULT *result) +static int agent_variant(AGENT_REQUEST *request, AGENT_RESULT *result) { ZBX_UNUSED(request); |