Ad Widget

Collapse

Unable to send the value for two metrics to server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billhmoore
    Junior Member
    • Apr 2014
    • 3

    #1

    Unable to send the value for two metrics to server

    Hello, I am new to Zabbix and have been exploring how to get data from our java apps into Zabbix.

    I can send a single metric and it's value to Zabbix using the following JSON string:

    {"request":"sender data","data":[{"host":"168.179.60.149","key":"UDHRequestCount"," value":"423","clock":1396988700}] }

    I am now trying to send two metrics and their falues to Zabbix using the following JSON string:

    {"request":"sender data", "data":[ {"host":"168.179.60.149", key":"UDHRequestCount", "value":"386", "clock":1396984200}, {"host":"168.179.60.149", "key":"UDHRequestInterval", "value":"386", clock":1396984200} ] }

    When this JSON string is sent, the read for a response times out.

    I am using the technique from section "Implementing Zabbix sender in Java" in the book "Mastering Zabbix".

    Could anyone help me and tell me what I am doing wrong?
  • billhmoore
    Junior Member
    • Apr 2014
    • 3

    #2
    Not sure what fixed my issue, but after posting this thread, it is now working.

    Comment

    Working...