# Zabbix agent ## Overview For Zabbix version: 6.0 and higher ## Setup Refer to the vendor documentation. ## Zabbix configuration No specific Zabbix configuration is required. ### Macros used |Name|Description|Default| |----|-----------|-------| |{$AGENT.TIMEOUT} |
Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode).
|`3m` | ## Template links There are no template links in this template. ## Discovery rules ## Items collected |Group|Name|Description|Type|Key and additional info| |-----|----|-----------|----|---------------------| |Monitoring_agent |Version of Zabbix agent running |-
|ZABBIX_PASSIVE |agent.version**Preprocessing**:
- DISCARD_UNCHANGED_HEARTBEAT: `1d`
| |Monitoring_agent |Host name of Zabbix agent running |-
|ZABBIX_PASSIVE |agent.hostname**Preprocessing**:
- DISCARD_UNCHANGED_HEARTBEAT: `1d`
| |Monitoring_agent |Zabbix agent ping |The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.
|ZABBIX_PASSIVE |agent.ping | |Status |Zabbix agent availability |Monitoring agent availability status
|INTERNAL |zabbix[host,agent,available] | ## Triggers |Name|Description|Expression|Severity|Dependencies and additional info| |----|-----------|----|----|----| |Zabbix agent is not available (for {$AGENT.TIMEOUT}) |For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold.
|`max(/Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0` |AVERAGE |Manual close: YES
| ## Feedback Please report any issues with the template at https://support.zabbix.com # Zabbix agent active ## Overview For Zabbix version: 6.0 and higher ## Setup Refer to the vendor documentation. ## Zabbix configuration No specific Zabbix configuration is required. ### Macros used |Name|Description|Default| |----|-----------|-------| |{$AGENT.NODATA_TIMEOUT} |No data timeout for active agents. Consider to keep it relatively high.
|`30m` | ## Template links There are no template links in this template. ## Discovery rules ## Items collected |Group|Name|Description|Type|Key and additional info| |-----|----|-----------|----|---------------------| |Monitoring_agent |Version of Zabbix agent running |-
|ZABBIX_ACTIVE |agent.version**Preprocessing**:
- DISCARD_UNCHANGED_HEARTBEAT: `1d`
| |Monitoring_agent |Host name of Zabbix agent running |-
|ZABBIX_ACTIVE |agent.hostname**Preprocessing**:
- DISCARD_UNCHANGED_HEARTBEAT: `1d`
| |Status |Zabbix agent ping |The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.
|ZABBIX_ACTIVE |agent.ping | ## Triggers |Name|Description|Expression|Severity|Dependencies and additional info| |----|-----------|----|----|----| |Zabbix agent is not available (or nodata for {$AGENT.NODATA_TIMEOUT}) |For active agents, nodata() with agent.ping is used with {$AGENT.NODATA_TIMEOUT} as time threshold.
|`nodata(/Zabbix agent active/agent.ping,{$AGENT.NODATA_TIMEOUT})=1` |AVERAGE |Manual close: YES
| ## Feedback Please report any issues with the template at https://support.zabbix.com