Ad Widget

Collapse

Monitoring java processes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • binrush
    Junior Member
    • Aug 2012
    • 1

    #1

    Monitoring java processes

    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?
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    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:
    1. For example create a full clone of 'Template JMX Generic' and name it 'Template JMX Generic -2nd interface'
    2. Rename 'Applications' and 'Graphs' in a similar way.
      For example 'JMX - Classes :: 2nd interface'
    3. Export the template and add a space character after any '[' character.
      For example:
      Code:
      # sed -i 's/\[/\[ /g' zbx_export_templates.xml
    4. Remove the previously cloned template ('Template JMX Generic -2nd interface') from ZABBIX and import the modified template file
    5. Assign the just imported template to a host
    6. 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'
    7. 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.

    Comment

    • i5513
      Junior Member
      • Nov 2011
      • 12

      #3
      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

      • elemarmb
        Member
        • Mar 2009
        • 53

        #4
        I have the following sugestions :

        Configure each java to listen for JMX in diferent port.

        Configure one Zabbix host for each java process you want to listen, then assign the same IP and port configured above.

        Associate the same template for all this hosts.

        Comment

        Working...