I am trying to setup web monitoring where I need to capture the value of the output in step 1 to use in step 2. It looks like I can do that with regex and have it set a variable but I am having problems making it work.
When I test this via curl my part of my output looks like this:
ms":[{"accessId":"d8b9b11e-bc8c-4a81-b7c0-5ca345c9fe0b","exp
That access ID is what I want to capture to a variable.
I tried doing something like this:
{accessId} = regex:name="accessId" content="(accessId":"(.*)",))"
But Zabbix says it can't extract the value of accessId from the output. What do I need to do in order to get this to match?
Thanks,
Luke
When I test this via curl my part of my output looks like this:
ms":[{"accessId":"d8b9b11e-bc8c-4a81-b7c0-5ca345c9fe0b","exp
That access ID is what I want to capture to a variable.
I tried doing something like this:
{accessId} = regex:name="accessId" content="(accessId":"(.*)",))"
But Zabbix says it can't extract the value of accessId from the output. What do I need to do in order to get this to match?
Thanks,
Luke
Comment