Hello,
I hope that someone is able to help me with this problem as I wasn't able to come up with a solution for this "unique" system that I'm trying to monitor. The system is a storage which I'm able to query via RestAPI. When it's about the performance values, the system is not able to provide me with a "now" value at the time of the query. Instead it's giving me a history of the last minutes with a unix time. The json response looks like this:
Another problem is that the last value is sometimes "null" when the system wasn't able to create it yet.
The question is if I can somehow use these values with an exact time to "inject" it into the zabbix data history? Another option would be if I would simply be able to use the last option and work around the "null" problem. But I didn't found a way how I could use the last value in this json data schema.
Hope someone is able to give me a hint how I can approach this problem
Happy eastern!
I hope that someone is able to help me with this problem as I wasn't able to come up with a solution for this "unique" system that I'm trying to monitor. The system is a storage which I'm able to query via RestAPI. When it's about the performance values, the system is not able to provide me with a "now" value at the time of the query. Instead it's giving me a history of the last minutes with a unix time. The json response looks like this:
Code:
[
{
"datapoints": [
.........
[
2370.4999999999995,
1586459100
],
[
2388.599999999999,
1586459160
],
[
2369.5000000000005,
1586459220
],
[
2609.799999999996,
1586459280
],
[
1626.299999999999,
1586459340
],
[
1317.3999999999985,
1586459400
]
],
"target": "stats.counters.scvmclient.allhosts.nfsReads.cluster.rate"
}
]
The question is if I can somehow use these values with an exact time to "inject" it into the zabbix data history? Another option would be if I would simply be able to use the last option and work around the "null" problem. But I didn't found a way how I could use the last value in this json data schema.
Hope someone is able to give me a hint how I can approach this problem

Happy eastern!