Dear community,
I am starting to use Zabbix and I am not very experienced with it. I want to create a template that, for the simplicity of this question, has one item of type HTTP agent. This item is of request type GET and the URL looks like this:
When I click on "Test" in the item configuration and then on "Get value and test", I can set the macros to test values and the request successfully gets the correct value.
After saving the item and assigning the template to a host, I can see the template item assigned to the host when viewing the list of items for that host. When clicking on the item and clicking on "Test", I can see that the macros are correctly automatically assigned to the values of the host interface. Clicking "Get value and test" yields the correct value.
However: when I view "Latest data" for the host, I can see the item with a red exclamation mark in the info column, saying "Cannot perform request: URL using bad/illegal format or missing URL"
I searched about macros in the documentation and https://www.zabbix.com/documentation...ed_by_location states that the {HOST.PORT} macro is not supported in the HTTP Agent item. Why? Is there any way to access the Port of the interface in a template item?
Thank you!
I am starting to use Zabbix and I am not very experienced with it. I want to create a template that, for the simplicity of this question, has one item of type HTTP agent. This item is of request type GET and the URL looks like this:
Code:
{HOST.CONN}:{HOST.PORT}/count-all
After saving the item and assigning the template to a host, I can see the template item assigned to the host when viewing the list of items for that host. When clicking on the item and clicking on "Test", I can see that the macros are correctly automatically assigned to the values of the host interface. Clicking "Get value and test" yields the correct value.
However: when I view "Latest data" for the host, I can see the item with a red exclamation mark in the info column, saying "Cannot perform request: URL using bad/illegal format or missing URL"
I searched about macros in the documentation and https://www.zabbix.com/documentation...ed_by_location states that the {HOST.PORT} macro is not supported in the HTTP Agent item. Why? Is there any way to access the Port of the interface in a template item?
Thank you!
Comment