I'm trying to create an item web.page.regexp but can't get a match on my desired text.
This is what i have right now.
The web page contains the following text.
I'm trying to get the data in quotes where the word "OK" is. There are various values that can be and I want to pull the value so I can create a trigger on it. It doesn't seem to match on that text though. Here is my output when i test the key.
Any ideas why its not matching on the string?
This is what i have right now.
Code:
web.page.regexp[127.0.0.1,/support-internal/api/health/basic,8080,"basicHealthCheckResult\": \"([.+])\"",,\1]
Code:
{"timeTaken":0,"basicHealthCheckResult":"OK","extendedHealthCheckResults":{}}
Code:
zabbix_agentd -t web.page.regexp[127.0.0.1,/support-internal/api/health/basic,8080,"basicHealthCheckResult\": \"([.+])\"",,\1] web.page.regexp[127.0.0.1,/support-internal/api/health/basic,8080,basicHealthCheckResult": "([.+])",,1] [s|]
Comment