Support macros {HOST.PORT} in item key parameters

Details

Description

I intend to create a low-level discovery rule, whose JSON data is going to be returned by an external check script. In order to discover objects from each monitored server, the script is going to call the zabbix_get utility.

In discovery settings, I may supply {HOST.CONN} as a key parameter and my script can use this data as the argument for --host . However, {HOST.PORT}is not supported there. I may create a user macro that holds the agent port number, however I wish I could get this data from the host configuration.