Ad Widget

Collapse

JMX monitoring of non-primitive data types

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ToomasAas
    Junior Member
    • Apr 2012
    • 14

    #1

    JMX monitoring of non-primitive data types

    Hello!

    I am setting up monitoring for Java application which, among other things, gives out following info over JMX which I can see with jmxterm:


    Code:
    $>get OverLimitColumns
    #mbean = com.company.app:name=someMBean,type=someMBean:
    OverLimitColumns = [ table: [someTable], column [someColumn] ];
    I would like to get the values 'someColumn' and 'someTable' into Zabbix.

    For testing, I created item with key:
    Code:
    jmx["com.company.app:name=someMBean,type=someMBean",OverLimitColumns]
    and this item goes to unsupported state with error: Data object type cannot be converted to string.

    In Zabbix 4.0 manual (https://www.zabbix.com/documentation...jmx_monitoring) it is said:

    "Since Zabbix 4.0.0 it is possible to work with custom MBeans returning non-primitive data types, which override the toString() method."

    I am using Zabbix 4.0.5.

    I guess that I am facing a non-primitive data type here, but I am not very experienced with Java MBeans and data types that they return. And in Zabbix docs I couldn't find any info about *how* to work with such MBeans.

    I hope someone can advise me how to proceed?
Working...