Dear All,
We are trying to get history data by calling history.get API. We have no issue with value type 0, which is float; however, when we call the same API with value type set to 3, which is unsigned, the query takes 20+ mins to return, and the performance get even worse if we call it more times.
We are using Zabbix 3.2
below is the curl comannd we used, the first one is having issue, seconde one could return immediately.
could someone please help to advise what is the issue and what can be done?
curl -i -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0","method":"history.get","params":{"hostids":" 10134","time_from":"1516973982","output": "itemid","history":3},"id": 2, "auth": "cab9bbd1d75e097ec21c279e465e4f5f"}'
curl -i -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0","method":"history.get","params":{"hostids":" 10134","time_from":"1516973982","output": "itemid","history":0},"id": 2, "auth": "cab9bbd1d75e097ec21c279e465e4f5f"}'
regards
We are trying to get history data by calling history.get API. We have no issue with value type 0, which is float; however, when we call the same API with value type set to 3, which is unsigned, the query takes 20+ mins to return, and the performance get even worse if we call it more times.
We are using Zabbix 3.2
below is the curl comannd we used, the first one is having issue, seconde one could return immediately.
could someone please help to advise what is the issue and what can be done?
curl -i -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0","method":"history.get","params":{"hostids":" 10134","time_from":"1516973982","output": "itemid","history":3},"id": 2, "auth": "cab9bbd1d75e097ec21c279e465e4f5f"}'
curl -i -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0","method":"history.get","params":{"hostids":" 10134","time_from":"1516973982","output": "itemid","history":0},"id": 2, "auth": "cab9bbd1d75e097ec21c279e465e4f5f"}'
regards