[ZBX-8383] Default tomcat template have wrong items Created: 2014 Jun 23  Updated: 2024 Apr 10  Resolved: 2018 Dec 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 2.3.1
Fix Version/s: 3.0.25rc1, 4.0.3rc1, 4.2.0alpha2, 4.2 (plan)

Type: Problem report Priority: Minor
Reporter: k l Assignee: Alex Kalimulin
Resolution: Fixed Votes: 1
Labels: escaping, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Team: Team A
Sprint: Sprint 44, Sprint 45, Sprint 46, Nov 2018, Sprint 47, Dec 2018
Story Points: 0.5

 Description   

Gyus!

Template "Template JMX Tomcat", that shipped with zabbix have no escape of " in the names of Mbeans.
This leads taht most part of items in template are not-supported. Unfortunately, due to the problem I spent several hours investigating this trivial issue. I'm sure many other people too.

E.g:

Instead of 
jmx["Catalina:type=GlobalRequestProcessor,name=http-8080",bytesReceived]

you should use:
jmx["Catalina:type=GlobalRequestProcessor,name=\"http-bio-8080\"",bytesReceived]

This link helped me:
https://www.zabbix.com/forum/showthread.php?t=36714
And you could consider using this template:
https://gist.github.com/hgomez/32091...x-template-xml
It works like a charm for me after setting the values of macroses in templates:
{$AJP_PORT} 8009
{$CONNECTOR_MODE} bio
{$HTTPS_PORT} 8443
{$HTTP_PORT} 8080

Could you please fix default tomcat template?



 Comments   
Comment by k l [ 2014 Jun 23 ]

correct link to template
https://gist.github.com/hgomez/3209196#file-zabbix2-tomcat7-jmx-template-xml

Comment by Vladislavs Sokurenko [ 2018 Nov 28 ]

(1) Template changes documentation must be updated

Kalimulin: Please change documentation (8 Template changes) to reflect the following:

  • The template has been updated to support recent Tomcat versions
  • Now there are macros defined in Template App Apache Tomcat JMX: {$PROTOCOL_HANDLER_HTTP}, {$PROTOCOL_HANDLER_HTTPS}, {$PROTOCOL_HANDLER_AJP}

martins-v Updated documentation for 3.0, 4.0. RESOLVED

Kalimulin CLOSED, thanks!

Comment by Alex Kalimulin [ 2018 Nov 29 ]

Fixed in:

  • pre-3.0.25rc1 r87413
  • pre-4.0.3rc1 r87383
  • pre-4.2.0alpha2 r87390
Generated at Wed Apr 17 02:53:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.