D
D
Dmitry Dobryshin2021-05-05 09:40:18
JSON
Dmitry Dobryshin, 2021-05-05 09:40:18

How to create data items from JSON file in zabbix?

The server returns JSON like this:

{ "{#DATE}":"2021-01-01+00:01",
  "{#ITEM}": {
    "{#CLIENT}":"Вася",
    "{#MONEY}":"20"
  },
  "{#ITEM}": {
    "{#CLIENT}":"Петя",
    "{#MONEY}":"80"
  },
  "{#ITEM}": {
    "{#CLIENT}":"Маша",
    "{#MONEY}":"45"
  }
}

I can’t figure out how to create a data prototype so that data elements are created:
"Вася"
"Вася - 20"
"Петя"
"Петя - 80"
"Маша"
"Маша - 45"

There is a data element that this file receives:
60923ba8e9eda615889751.png
I'm trying to create a data element:
60923db8712ce407528162.png
But the elements are not created, in the last data only the contents of json-all

I asked Google, but apparently I don't understand something, or didn't take it into account. What else needs to be done to get this information?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question