Hi
I have created a function to retrieve zabbix chart data using the AUTH api to retrieve the token. On previous versions I was able to add the token to a request to chart2 and retrieve the graph in png.
But in version 5.2 Zabbix changed the needed cookies from just using the token to a base64 encoded json with the following fields:
* sessionid (the same as the token before)
* serverCheckResult: true
* serverchecktime: 1613571268
*sign: a long string
I have no idea on how to create this json with just the token from the api....
If anyone has an Idea, thanks!!!
Thanks
I have created a function to retrieve zabbix chart data using the AUTH api to retrieve the token. On previous versions I was able to add the token to a request to chart2 and retrieve the graph in png.
But in version 5.2 Zabbix changed the needed cookies from just using the token to a base64 encoded json with the following fields:
* sessionid (the same as the token before)
* serverCheckResult: true
* serverchecktime: 1613571268
*sign: a long string
I have no idea on how to create this json with just the token from the api....
If anyone has an Idea, thanks!!!
Thanks
Comment