Ad Widget

Collapse

Java sender and item key with attribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rs190
    Junior Member
    • Feb 2017
    • 1

    #1

    Java sender and item key with attribute

    Hello

    Is it possible to send an item value with attributes with the Java sender ?

    I'm using a java sender to send metric data from a SAP system to Zabbix.
    I've created the appropriate Items, of type Zabbix trapper

    Now I have some metrics that I need to send with an attribute: By example:

    system.jobs.status[jobName]

    and my code would look like:

    Code:
    dataObject.setKey("system.jobs.status[financeReport]");
    dataObject.setValue("ABORTED");
    I would like to be able to send the status of all the jobs that I have in my system within this Item.


    Is it possible ?

    I've tried every possible syntaxes, but no luck.
    Any help appreciated.
    Thanks
Working...