Ad Widget

Collapse

Which format of JSON for zabbix trapper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kulikov.denis
    Junior Member
    • Feb 2017
    • 4

    #1

    Which format of JSON for zabbix trapper

    Hi,
    I can't find format of json to send info into zabbix trapper (Zabbix 3.0).
    I tried like this:
    "{"request": "sender data","data": [{"host": "LLD_TEST","key": "DISCOVERY_KEY","value": [{"{#ITEM}": "200"}, {"{#ITEM}": "100"}]}]}"
    It leads to error with { ""data" -> "JSON-rpc version is not specified."}
    For JSON-rpc, it needs know methods
    like this "host.get" and header like this :
    {"id":3,"jsonrpc":"2.0","method":"host.get","param s":{"filter":{"host":["BaseStation2"]}}}
    But documentation doesn't contain info about send JSON. Only link to zabbix_sender.
  • nobodysu
    Member
    • Sep 2016
    • 84

    #2

    Example output at bottom of the page.

    Comment

    • kulikov.denis
      Junior Member
      • Feb 2017
      • 4

      #3
      I need header

      Originally posted by nobodysu
      https://www.zabbix.com/documentation...evel_discovery
      Example output at bottom of the page.
      Don't actual question.
      Zabbix trapper doesn't used json-rpc.
      only simple json on ip : port with data.
      Last edited by kulikov.denis; 13-02-2017, 11:44.

      Comment

      Working...