Zabbix Documentation 4.0

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:appendix:items:activepassive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:appendix:items:activepassive [2018/08/03 11:30]
martins-v fixing typos
manual:appendix:items:activepassive [2018/12/07 11:36] (current)
martins-v better formatting
Line 6: Line 6:
  
 Zabbix uses a JSON based communication protocol for communicating with Zabbix agent. Zabbix uses a JSON based communication protocol for communicating with Zabbix agent.
- 
-For definition of header and data length please refer to [[manual:​appendix:​protocols:​header_datalen|protocol details]]. 
  
 === Passive checks === === Passive checks ===
Line 15: Line 13:
 **Server request** **Server request**
  
-<code><​HEADER><​DATALEN><​item key></​code>​+For definition of header and data length please refer to [[manual:​appendix:​protocols:​header_datalen|protocol details]]. 
 + 
 +<​code><​item key></​code>​
  
 **Agent response** **Agent response**
  
-<code><​HEADER><​DATALEN><​DATA>​[\0<​ERROR>​]</​code>​+<​code><​DATA>​[\0<​ERROR>​]</​code>​
  
 Above, the part in square brackets is optional and is only sent for not supported items. Above, the part in square brackets is optional and is only sent for not supported items.
Line 51: Line 51:
 **Agent request** **Agent request**
  
-<​code>​ +<​code ​javascript
-<​HEADER><​DATALEN>​{+{
     "​request":"​active checks",​     "​request":"​active checks",​
     "​host":"<​hostname>"​     "​host":"<​hostname>"​
Line 60: Line 60:
 **Server response** **Server response**
  
-<​code>​ +<​code ​javascript
-<​HEADER><​DATALEN>​{+{
     "​response":"​success",​     "​response":"​success",​
     "​data":​[     "​data":​[
Line 103: Line 103:
 **Agent sends** **Agent sends**
  
-<​code>​ +<​code ​javascript
-<​HEADER><​DATALEN>​{+{
     "​request":"​agent data",     "​request":"​agent data",
     "​session":​ "​12345678901234567890123456789012",​     "​session":​ "​12345678901234567890123456789012",​
Line 144: Line 144:
 **Server response** **Server response**
  
-<​code>​ +<​code ​javascript
-<​HEADER><​DATALEN>​{+{
     "​response":"​success",​     "​response":"​success",​
     "​info":"​processed:​ 3; failed: 0; total: 3; seconds spent: 0.003534"​     "​info":"​processed:​ 3; failed: 0; total: 3; seconds spent: 0.003534"​