Hey,
I'm trying to create templates for monitoring tomcat instances using zabbix-java-gateway.
I'd like to parameterize following parts in name and keys with MACROS:
Name: connectionCount_{$TP_HTTPS}
Key: jmx["Catalina:type=ThreadPool,name={$TP_HTTPS}",connec tionCount]
The problem is that object name in my case includes double quotas inside, like:
Catalina:type=ThreadPool,name="http-bio-8081"
When I configured the key manually, as below (by escaping double quotas):
jmx["Catalina:type=ThreadPool,name=\"http-bio-8081\"",acceptorThreadCount]
it works fine. But even when I add macro with escaped double quotas:
{$TP_HTTPS} = \"http-bio-8081\"
I got error from tomcat:
Invalid character '"' in value part of property
and item turns to "Not supported".
Another issue with this approach is that I want to have a name dependent on the same macro, which looks really bad with escaped quotas.
Do you have any ideas how to fix it?
I found this thread:
but it also says only about escaping quotas.
Thanks in advance,
Wojtek
I'm trying to create templates for monitoring tomcat instances using zabbix-java-gateway.
I'd like to parameterize following parts in name and keys with MACROS:
Name: connectionCount_{$TP_HTTPS}
Key: jmx["Catalina:type=ThreadPool,name={$TP_HTTPS}",connec tionCount]
The problem is that object name in my case includes double quotas inside, like:
Catalina:type=ThreadPool,name="http-bio-8081"
When I configured the key manually, as below (by escaping double quotas):
jmx["Catalina:type=ThreadPool,name=\"http-bio-8081\"",acceptorThreadCount]
it works fine. But even when I add macro with escaped double quotas:
{$TP_HTTPS} = \"http-bio-8081\"
I got error from tomcat:
Invalid character '"' in value part of property
and item turns to "Not supported".
Another issue with this approach is that I want to have a name dependent on the same macro, which looks really bad with escaped quotas.
Do you have any ideas how to fix it?
I found this thread:
but it also says only about escaping quotas.
Thanks in advance,
Wojtek
Comment