???? ?? ???? ???? ??:
Agent2 -> ???: ???? ?????? ?????
??? -> ????2: ????? ?????? ?????
????2 -> ???: ???? ????? ????
??? -> ????2: ????? ????? ????
The active checks request is used to obtain the active checks to be processed by agent. This request is sent by the agent upon start and then with RefreshActiveChecks inervals.
Field | Type | Mandatory | Value |
---|---|---|---|
request | string | yes | active checks |
host | string | yes | Host name. |
version | string | yes | The agent version: <major>.<minor>. |
host_metadata | string | no | The configuration parameter HostMetadata or HostMetadataItem metric value. |
interface | string | no | The configuration parameter HostInterface or HostInterfaceItem metric value. |
ip | string | no | The configuration parameter ListenIP first IP if set. |
port | number | no | The configuration parameter ListenPort value if set and not default agent listening port. |
Example:
{
"request": "active checks",
"host": "Áú»¢¶Ä²© server",
"version": "6.0",
"host_metadata": "mysql,nginx",
"hostinterface": "zabbix.server.lan",
"ip": "159.168.1.1",
"port": 12050
}
????? ??'??? ??????? ????? ?? ??? ???? ????? ????? ???? ????? ???? ??'??? ???????.
??? | ???? | ???? | ??? | |
---|---|---|---|---|
????? | ?????? | ?? | ????? | ???? |
|
???? | ?????? | ?? | ???? ?? ????? ????? ?? ???. | |
?????? | ???? ????????? | ?? | ????? ????? ??????. | |
???? | ?????? | ?? | ???? ???? ?? ?????? ????? ???????. | |
itemid | ???? | ?? | ???? ????. | |
????? | ?????? | ?? | ????? ????? ????. | |
lastlogsize | ???? | ?? | ???? lastlogsize. | |
mtime | ???? | ?? | ???? mtime. | |
????? ?????? | ???? ????????? | ?? | ??????? ???????? ????????. | |
?? | ?????? | ?? | ?? ????? ?????? ??????. | |
????? | ?????? | ?? | ????? ?????? ??????. | |
???_????? | ???? | ?? | ??? ????? ?????? ??????. | |
exp_delimiter | ?????? | ?? | ????? ????? ?????? ??????. | |
??????_?????? | ???? | ?? | ????? ??????? ?? ?????? ?????? ?????? ??????. |
?????:
{
"response": "?????",
"??????": [
{
"key": "log[/home/zabbix/logs/zabbix_agentd.log]",
"itemid": 1234,
"delay": "30s",
"lastlogsize": 0,
"mtime": 0
},
{
"key": "agent.version",
"itemid": 5678,
"delay": "10m",
"lastlogsize": 0,
"mtime": 0
}
]
}
???? ????? ????? ????? ?? ???? ????? ??????.
??? | ???? | ???? | ??? | |
---|---|---|---|---|
???? | ?????? | ?? | ????? ???? |
|
???? | ?????? | ?? | ?? ????. | |
???? | ?????? | ?? | ???? ?????: <major>.<minor>. | |
????? | ?????? | ?? | ???? ????? ?????? ????? ??? ??? ???? ????? ?????. | |
?????? | ???? ????????? | ?? | ???? ????. | |
id | ???? | ?? | ???? ???? (???? ?????????? ????? ?????? ????? ???????? ????? ?? ????? ???). | |
itemid | ???? | ?? | ???? ????. | |
??? | ?????? | ?? | ??? ?????. | |
lastlogsize | ???? | ?? | ????? lastlogsize. | |
mtime | ???? | ?? | ????? mtime. | |
????? | ???? | ?? | ??? ?????. | |
???? | ?????? | ?? | ???? ???? ???????? ?? ????. | |
eventtid | ???? | ?? | ???? ???????? ?? ???? eventtid. | |
????? | ???? | ?? | ????? ???? ???????? ?? ????. | |
????? ??? | ???? | ?? | ????? ???? ?? ???? ???????? ?? ????. | |
???? | ???? | ?? | ????? ???? ?? ???? (????? ??? ????). | |
ns | ???? | ?? | ????? ???? ?? ???? ???-?????. |
?????:
{
"request": "????? ????",
"??????": [
{
"????": 1,
"itemid": 5678,
"value": "2.4.0",
"????": 1400675595,
"ns": 76808644
},
{
"????": 2,
"itemid": 1234,
"lastlogsize": 112,
"value": " 19845:20140621:141708.521 ????? Áú»¢¶Ä²© Agent [<?? ????>]. Áú»¢¶Ä²© 2.4.0 (???? 50000).",
"????": 1400675595,
"ns": 77053975
}
],
"host": "??? Áú»¢¶Ä²©",
"version": "6.0",
"session": "1234456akdsjhfoui"
}
????? ????? ????? ????? ?? ??? ???? ????? ????? ???? ????? ???? ????? ?????.
??? | ???? | ???? | ??? |
---|---|---|---|
????? | ?????? | ?? | ????? | ???? |
???? | ?????? | ?? | ?????? ????? ??????. |
?????:
The heartbeat message is sent by an active agent to Áú»¢¶Ä²© server/proxy every HeartbeatFrequency seconds (configured in the Áú»¢¶Ä²© agent 2 configuration file).
It is used to monitor the availability of active checks.
Field | Type | Mandatory | Value |
---|---|---|---|
request | string | yes | active check heartbeat |
host | string | yes | The host name. |
heartbeat_freq | number | yes | The agent heartbeat frequency (HeartbeatFrequency configuration parameter). |