Ad Widget

Collapse

Zabbix API Method history.get

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diegodias
    Junior Member
    • Oct 2010
    • 9

    #1

    Zabbix API Method history.get

    I am following the example on ZabbixAPI documentation and using the call..

    curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"history.get","params": { "history": 0, "itemids": ["22412"],"output":"extend"},"auth":"2f57038f7ea409a0c4c0ec 475753dbd8","id":2}' http://<ip>/api_jsonrpc.php

    I get the result:

    {"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Resource (history) does not exist"},"id":2}

    I already saw on the database and there is a item with id 22412 on the history table.

    Anyone knows what I am doing wrong?
  • diegodias
    Junior Member
    • Oct 2010
    • 9

    #2
    Seems like the documentation is not that clear ..

    It says "Available since version: 1.8", and I am using 1.8.2. But there is no code at all about history.get method.

    I have already seen version 1.8.3 and the code is there.. I wil linstall the new version and try again.

    Comment

    • Aly
      ZABBIX developer
      • May 2007
      • 1126

      #3
      I would recommend to take 1.8.4RC1.. For API testing.
      Zabbix | ex GUI developer

      Comment

      Working...