0
How to recover values with regex from the return of a web scenario in Zabbix that calls an API. Web Scenario is for testing web pages and Apis in Zabbix.
I already have the regular expression that recovers the value and according to the Zabbix documentation, I just need to pass the expression this way: regex: w{54} documentation, but it does not recover the Answer, it does not understand the expression. Below the step setting:
Error:
Error: error in step variables "{access_token}=regex:[A-Za-z0-9]{54} {be}=Bearer ": cannot extract the value of "{access_token}" from response
Return of the API, from which I need to recover the access_token:
put the part of the code referring to the error. So it is easier to understand and help you
– absentia
so there’s no code itself, it’s td configured in Zabbix, I added the API’s Sponse, maybe that’s what you meant.
– Renato Souza