Zabbix服务器使用基于JSON的通信协议,在trapper item的帮助下从Zabbix发送器接收数据。
请求和响应消息必须以header and data length开头。
{
           "request":"sender data",
           "data":[
               {
                   "host":"<hostname>",
                   "key":"trap",
                   "value":"test value",
                   "clock":1516710794
               },
               {
                   "host":"<hostname>",
                   "key":"trap",
                   "value":"test value",
                   "clock":1516710795
               }
           ],
           "clock":1516712029,
           "ns":873386094
       }Zabbix server uses a JSON- based communication protocol for receiving data from Zabbix sender with the help of trapper item.
Request and response messages must begin with header and data length.
{
           "request":"sender data",
           "data":[
               {
                   "host":"<hostname>",
                   "key":"trap",
                   "value":"test value",
                   "clock":1516710794
               },
               {
                   "host":"<hostname>",
                   "key":"trap",
                   "value":"test value",
                   "clock":1516710795
               }
           ],
           "clock":1516712029,
           "ns":873386094
       }