URL='https://zabbix.example.com/zabbix/api_jsonrpc.php'
HEADER='Content-Type:application/json'
JSON='
{
    "jsonrpc": "2.0",
    "method": "history.get",
    "params": {
        "output": [
            "clock",
            "value"
        ],
        "history": 0,
        "itemids": "23299",
        "sortfield": "clock",
        "sortorder": "DESC",
        "limit": 10
    },
    "auth": "658fbf7b659ebaed04e196619adf4691",
    "id": 1
}
'
curl -k -s -i -X POST -H "$HEADER" -d "$JSON" "$URL"
