Is it possible to monitor multiple java processes on one host using Zabbix Java Gateway? For example, I'd like to monitor jmx["java.lang:type=Threading","ThreadCount"]. I add two JMX interfaces to host, but I can't add two items, because items must be unique in scope of host. Why don't make items be unique in scope of interface?
Ad Widget
Collapse
Monitoring java processes
Collapse
X
-
Would like to know that too.
Edit1:
Comment from ZBX-5380:
It's zabbix limitations. The item key must be unique within a single host. [...] there are no short term plans to significantly change that.
EDIT2:
The mentioned hint:
Use spaces?
Does the trick (or at least can be considered as workaround)
The steps I've done:- For example create a full clone of 'Template JMX Generic' and name it 'Template JMX Generic -2nd interface'
- Rename 'Applications' and 'Graphs' in a similar way.
For example 'JMX - Classes :: 2nd interface' - Export the template and add a space character after any '[' character.
For example:Code:# sed -i 's/\[/\[ /g' zbx_export_templates.xml
- Remove the previously cloned template ('Template JMX Generic -2nd interface') from ZABBIX and import the modified template file
- Assign the just imported template to a host
- Filter within tho host's item view for items linked to the new template
For example use the 'Subfilter' function and choose all Applications ending with ':: 2nd interface' - Finally choose all filtered items and set the 'Host interface' to the desired JMX interface via the 'Mass update' action
Last edited by BDiE8VNy; 17-10-2012, 19:28. -
Third optional argument like another workaround
I attached a patch wich add a third argument to identify the app server instance in zabbix issue tracker:
Comment
Comment