[ PLEASE IGNORE THIS POST , it was caused by my browser cache , it was displaying the error caused by a erroneus key ]
[ keys with macros works fine ]
[ keys with macros works fine ]
Hello,
I tried to find any solution o any bug, but I did not find.
Imagine you have a tomcat host, with user macros:
host.tomcat1 {$HTTP_PORT} == 8080
and you have a user parameter script (get_url) which return urls when you pass the port as parameter:
{ "data": [
"{#URL}": "/mycontext1",
"{#URL}": "/mycontext2"
] }
Creating a new discover rule with key:
get_url[{$HTTP_PORT}]
will fail because it contains "$"
Why user macros cannot be used inside discover rule key ?
Maybe user parameters could access to host macro defined though environment variables or similar hack. If there is a way, it is not document, I would like to ask you before I open a wishlist issue on zabbix support
Thank you very much
I tried to find any solution o any bug, but I did not find.
Imagine you have a tomcat host, with user macros:
host.tomcat1 {$HTTP_PORT} == 8080
and you have a user parameter script (get_url) which return urls when you pass the port as parameter:
{ "data": [
"{#URL}": "/mycontext1",
"{#URL}": "/mycontext2"
] }
Creating a new discover rule with key:
get_url[{$HTTP_PORT}]
will fail because it contains "$"
Why user macros cannot be used inside discover rule key ?
Maybe user parameters could access to host macro defined though environment variables or similar hack. If there is a way, it is not document, I would like to ask you before I open a wishlist issue on zabbix support
Thank you very much