Hello
I'm configuring some items with regex preprocessing, to return some specific results. The problem is that my master item returns a big response, which is transformed into LLD macros, here's a example:
[{"{#X}":"abc","{#Y}":"509","{#Z}":"SA"},{"{#X}" :"d ef","{#Y}":"577","{#Z}":"SE"},{"{#X}":"ghi","{#Y }" :"502","{#Z}":"SI"},{"{#X}":"jkl","{#Y}":"540 "," {#Z}":"SO"}(...) etc etc...
I generate many dependents items of this master with discovery rule. My objective is that each item returns their (#Y) value, respectively. To do this, each generated item has a preprocessing with regex to be generated with {#Y} value.
My regex was: {#Y}":"(.*?)"
It worked (at least on regex101) but my items become disabled because zabbix interpret {#Y} as a LLD macro in the output, and the return is something like: 509":"(.?)".
I've tried Y}":"(.*?)" and it works, but regex just get the first match and all the other items get the same result of the first item, and this is not true...
Help!
I'm configuring some items with regex preprocessing, to return some specific results. The problem is that my master item returns a big response, which is transformed into LLD macros, here's a example:
[{"{#X}":"abc","{#Y}":"509","{#Z}":"SA"},{"{#X}" :"d ef","{#Y}":"577","{#Z}":"SE"},{"{#X}":"ghi","{#Y }" :"502","{#Z}":"SI"},{"{#X}":"jkl","{#Y}":"540 "," {#Z}":"SO"}(...) etc etc...
I generate many dependents items of this master with discovery rule. My objective is that each item returns their (#Y) value, respectively. To do this, each generated item has a preprocessing with regex to be generated with {#Y} value.
My regex was: {#Y}":"(.*?)"
It worked (at least on regex101) but my items become disabled because zabbix interpret {#Y} as a LLD macro in the output, and the return is something like: 509":"(.?)".
I've tried Y}":"(.*?)" and it works, but regex just get the first match and all the other items get the same result of the first item, and this is not true...
Help!
but are all enabled
Comment