Hi everyone, hope you're fine
I'm using the Zabbix API (https://www.zabbix.com/documentation.../en/manual/api) and I'm facing a thing, I am not able to retrieve data from graphs, and I don't know how to do it...
I would like to get, i.e. the average value for this graph:
I have been looking for this, and seen some answers telling to use history items or trends
This is for a report automation, so, this is why I'm trying to get it via API
I have tried with trends, going for each one and saving all its values
Max and Min values are always possible to get (the Max of the maxs, and the Min of the mins)
But average is another thing, I have tried sum all of them and then divide by the number of trends, and it gives an approach but is not exact
So, that's why I'm looking for help
Using hsitory.get, I don't know how to interpret each item value, and haven't been able to calculate any proper result
If someone could give me a hand with this, I would really appreciate it
Thank you so much for your time
I'm using the Zabbix API (https://www.zabbix.com/documentation.../en/manual/api) and I'm facing a thing, I am not able to retrieve data from graphs, and I don't know how to do it...
I would like to get, i.e. the average value for this graph:
I have been looking for this, and seen some answers telling to use history items or trends
This is for a report automation, so, this is why I'm trying to get it via API
I have tried with trends, going for each one and saving all its values
Max and Min values are always possible to get (the Max of the maxs, and the Min of the mins)
But average is another thing, I have tried sum all of them and then divide by the number of trends, and it gives an approach but is not exact
So, that's why I'm looking for help
Using hsitory.get, I don't know how to interpret each item value, and haven't been able to calculate any proper result
If someone could give me a hand with this, I would really appreciate it
Thank you so much for your time
Comment