Ad Widget

Collapse

zabbix JMX item with a value of java.lang.string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimzs
    Junior Member
    • Sep 2014
    • 7

    #1

    zabbix JMX item with a value of java.lang.string

    I need some help getting the values for MemoryManagerNames for a JMX item.

    I've got a JMX key for PS Eden Space MemoryManagerNames. The attribute is MemoryManagerNames with a Value of an array of type java.lang.String[2]

    The 2 array values are PS MarkSweep and PS Scavenge.

    For an Item I have
    jmx["java.lang:type=MemoryPool,name=PS Eden Space",MemoryManagerNames]

    I'm getting a Not Supported error

    "object is not primitive: %class[Ljava.lang.string;"


    Is this even possible? It's not composite data so it doesnt really tell me how I can do this in the zabbix documentation, if at all.
  • tnas
    Junior Member
    • Mar 2015
    • 2

    #2
    Fork of Zabbix Java Gateway

    Hi,

    The original Zabbix Java Gateway, i. e., the project that has been created by Ryan Rupp (ryanrupp), does not support array of SimpleType (like String). There are other kinds of objects wich are not supported by it.

    However, there is a fork of Ryan project that has been implementing some features like these. If you would like to try, search by the fork of tnas user.

    HTH.

    Comment

    • jimzs
      Junior Member
      • Sep 2014
      • 7

      #3
      Thanks, I'll search for that and check it out.

      Comment

      Working...