5.02021-11-21T21:44:24ZTemplates/ApplicationsAuto fuzzytime trigger for Zabbix proxyAuto fuzzytime trigger for Zabbix proxy## Overview
The solution is based on Zabbix API.
And native HTTP agent will discover all proxies and create lastaccess item per each proxy + fuzzytime trigger.
In order to run this solution, you have to have an active session-id in a global level. Please see:
[https://share.zabbix.com/zabbix-tools-and-utilities/maintain-zabbix-api-session-id-in-a-global-level](zabbix-tools-and-utilities/maintain-zabbix-api-session-id-in-a-global-level)
<https://youtu.be/MjQJ0g0AaYI>
Templates/ApplicationsProxy Last AccessDiscover all proxiesHTTP_AGENTget.proxy.list1hLast access for {#PROXYNAME}INTERNALzabbix[proxy,{#PROXYNAME},lastaccess]Proxy Last Access{fuzzytime({$PROXYFUZZYTIME})}=0{#PROXYNAME} is not reachable for {$PROXYFUZZYTIME}HIGH{#PROXYNAME}Down8s{$JSONRPC.PHP}{
"jsonrpc": "2.0",
"method": "proxy.get",
"params": {
"output": "extend",
"selectInterface": "extend"
},
"auth": "{$APIKEY}",
"id": 1
}NOJSONPOST{#PROXYNAME}$.hostJSONPATH$.result[*]{$PROXYFUZZYTIME}3m