Hello
I've configured an prototype item on zabbix and added a regex preprocessing: "{#TEST6}":"(.*?)" cause the output of my main item is a block of text, like:
[{"{#TEST}":"aaaa","{#TEST2}":"bbbb","{#TEST3}": "cc cc","{#TEST4}":"dddd","{#TEST5}":"eeee","{#TEST6}":"6","{#TEST7}":"ffff","{#TEST8}":"gggg"}(...it continues repeating the same)
I've tested this regex on regex101, it worked well, but on zabbix my items are not supported and with this error -> "Preprocessing failed for: [{"{#TEST}":" 1. Failed: cannot perform regular expression ""6":"(.*?)"" match for value of type "string": pattern does not match"
It seems that the preprocessing is working, because it's returning the correct value (in this case, 6)...
The itens are configured with the type "text".
It's something wrong with regex?
I've configured an prototype item on zabbix and added a regex preprocessing: "{#TEST6}":"(.*?)" cause the output of my main item is a block of text, like:
[{"{#TEST}":"aaaa","{#TEST2}":"bbbb","{#TEST3}": "cc cc","{#TEST4}":"dddd","{#TEST5}":"eeee","{#TEST6}":"6","{#TEST7}":"ffff","{#TEST8}":"gggg"}(...it continues repeating the same)
I've tested this regex on regex101, it worked well, but on zabbix my items are not supported and with this error -> "Preprocessing failed for: [{"{#TEST}":" 1. Failed: cannot perform regular expression ""6":"(.*?)"" match for value of type "string": pattern does not match"
It seems that the preprocessing is working, because it's returning the correct value (in this case, 6)...
The itens are configured with the type "text".
It's something wrong with regex?
This totally worked for me
Comment