Hi everyone!
I'm struggling here with a public API that returns a list of power consumptions. The thing is that I can only get the last 24h readings from 1 day ago. I.E: Today 16th, at 15pm, I can get the batch of readings from 15th 00:00 to 15th 24:00.Tomorrow 17th at 15pm I'll get the batch of readings from 16th 00:00 to 16th 24:00.
I get the list of values as a simple "comma-separated" list but I can tweak that if necessary. My problem is... How could I register that for a single item in Zabbix, associating every value to it's corresponding hour?
It should be something like this:
List of readings: [200.00, 123.00, 154.00,167.00.......] <- 24 values
Item in Zabbix with values as:
200.00 -> 00:00
123.00 -> 01:00
154.00 -> 02:00
167.00 -> 03:00
.....
XXX.XX -> 24:00
I know I could create dependant items for each hour but the thing is I want to use this readings in some graphs, so I need them to be in a single item...
Any trick?
I'm struggling here with a public API that returns a list of power consumptions. The thing is that I can only get the last 24h readings from 1 day ago. I.E: Today 16th, at 15pm, I can get the batch of readings from 15th 00:00 to 15th 24:00.Tomorrow 17th at 15pm I'll get the batch of readings from 16th 00:00 to 16th 24:00.
I get the list of values as a simple "comma-separated" list but I can tweak that if necessary. My problem is... How could I register that for a single item in Zabbix, associating every value to it's corresponding hour?
It should be something like this:
List of readings: [200.00, 123.00, 154.00,167.00.......] <- 24 values
Item in Zabbix with values as:
200.00 -> 00:00
123.00 -> 01:00
154.00 -> 02:00
167.00 -> 03:00
.....
XXX.XX -> 24:00
I know I could create dependant items for each hour but the thing is I want to use this readings in some graphs, so I need them to be in a single item...
Any trick?
Comment