Recently, the project re-write collector to capture the function of software indicators, take this opportunity to learn some knowledge of Zabbix monitoring.
http://www.ttlsa.com/zabbix/zabbix-active-and-passive-checks/
Zabbix agent detection is divided into active (agent active) and passive (agent) two forms, active and passive statements are relative to the agent to discuss. A brief explanation of the difference between active and passive is as follows:
Active: The agent requests the server to get a list of active monitoring items and proactively submits the data that needs to be detected in the monitoring item to Server/proxy
Passive: The server requests data from the agent for the monitored items, and the agent returns the data.
The protocols in the Zabbix agent communication process are based on the JSON format, in the following format:
1 2 |
-"zbxd\x01" (5 bytes)-Data Length (8 bytes). 1 'll be formatted as 01/00/00/00/00/00/00/00 (eight bytes in HEX, + bit number) |
Note: To avoid memory exhaustion, server restricts the use of up to 128MB of memory per communication connection.
Passive Detection
The server initiates the following request