Hi Zabbix community,
my Zabbix server version: 6.0.21.
I have different Asterisk 11 servers (different IP addresses) which I wanna register under the same Asterisk template - Asterisk by HTTP Template.
In the Macros of the template,
there is a Macro named {$AMI.URL} which should contain the IP address + endpoint to your Asterisk HTTP server, should look like this: http://123.123.123.123:123/rawman
Now, my question is,
how can I have the IP address of the server dynamically instead of hard-coding it like this - http://123.123.123.123:123/rawman?
I tried to put in the value of the {$AMI.URL} Macro the URL this way: http://{HOST.IP}:123/rawman
but it seems that it's not possible to use another Macro as the value of another Macro.
Any idea how to have the URL dynamically - to have the same Asterisk Template assigned to different Asterisk servers.
Thanks in advance,
Idan
my Zabbix server version: 6.0.21.
I have different Asterisk 11 servers (different IP addresses) which I wanna register under the same Asterisk template - Asterisk by HTTP Template.
In the Macros of the template,
there is a Macro named {$AMI.URL} which should contain the IP address + endpoint to your Asterisk HTTP server, should look like this: http://123.123.123.123:123/rawman
Now, my question is,
how can I have the IP address of the server dynamically instead of hard-coding it like this - http://123.123.123.123:123/rawman?
I tried to put in the value of the {$AMI.URL} Macro the URL this way: http://{HOST.IP}:123/rawman
but it seems that it's not possible to use another Macro as the value of another Macro.
Any idea how to have the URL dynamically - to have the same Asterisk Template assigned to different Asterisk servers.
Thanks in advance,
Idan

Comment