I'm trying to use the API and Scripts to have a "Remote Ping" functionality. Without having to login to the machine I'm trying to ping from.
First I use API to update a host macro {$REMOTEIP} and then I run the script like "ping -i 0.2 -c 10 -w 5 {$REMOTEIP}".
This works but what I'm noticing is that the {$REMOTEIP} doesn't update fast enough and it's using the same IP that was there before. But what's even stranger is the snapshot below, Zabbix is showing that it's using the new IP but the results show the old IP (Macro).
Can I fix this by changing the "CacheUpdateFrequency" in the Server config? Are there negative side effects to changing this value from 60s, to 10s?
First I use API to update a host macro {$REMOTEIP} and then I run the script like "ping -i 0.2 -c 10 -w 5 {$REMOTEIP}".
This works but what I'm noticing is that the {$REMOTEIP} doesn't update fast enough and it's using the same IP that was there before. But what's even stranger is the snapshot below, Zabbix is showing that it's using the new IP but the results show the old IP (Macro).
Can I fix this by changing the "CacheUpdateFrequency" in the Server config? Are there negative side effects to changing this value from 60s, to 10s?