How can you use zabbix to check what public ip address the active agent has?
The pubic ip address of the active agent changes every 24-48 hours
C:\zabbix\zabbix_agentd.d\userparameter_WAN.IP.add ress.conf
UserParameter=WAN.IP.address,C:\zabbix\get_wan_IP.ps1
(Invoke-WebRequest -uri "http://ifconfig.me/ip" -UseBasicParsing).Content
Powershell.exe -executionpolicy remotesigned -File "c:\Program Files\Zabbix Agent 2\get_wan_IP.ps1"
C:\Windows\system32>Powershell.exe -executionpolicy remotesigned -File "c:\Program Files\Zabbix Agent 2\get_wan_IP.ps1" XX.XXX.X.XX(wan_ip)
C:\tmp>type get_wan_ip.ps1 (Invoke-WebRequest -uri "http://ifconfig.me/ip" -UseBasicParsing).Content C:\tmp>type get_wan_ip.bat @echo off powershell.exe -executionpolicy remotesigned -File C:\tmp\get_wan_ip.ps1 C:\tmp>get_wan_ip.bat 1xx.2xx.1xx.7x

Comment