Hello, probably something obvious that I have overlooked as a newbie with Zabbix:
I am using a Web Scenario to monitor some health state of a web service. Using various tutorials I found out how I get a returned value out of the web body JSON and into a variable in the first step:
Variables
Name Value
{state} => regex:"state":"([^"]+)"
After this, If in a next step I use "state" in a request, I see the correct value of this variable used (on the Server against which this step 2 request is done in the HTTP request logs). So the variable basically works.
*But*: I don't actually want to use this variable in a second step, I just want to use it as the actually monitored value, return its "latest value", maybe show a graph etc. I am probably overlooking something obvious, but how do I get that variable "state" out, and make Zabbix show it next to e.g. the Response Code for Step 1 or the Response Time, i.e. actually show it in the UI as another data value?
Thanks in advance,
Ralph
I am using a Web Scenario to monitor some health state of a web service. Using various tutorials I found out how I get a returned value out of the web body JSON and into a variable in the first step:
Variables
Name Value
{state} => regex:"state":"([^"]+)"
After this, If in a next step I use "state" in a request, I see the correct value of this variable used (on the Server against which this step 2 request is done in the HTTP request logs). So the variable basically works.
*But*: I don't actually want to use this variable in a second step, I just want to use it as the actually monitored value, return its "latest value", maybe show a graph etc. I am probably overlooking something obvious, but how do I get that variable "state" out, and make Zabbix show it next to e.g. the Response Code for Step 1 or the Response Time, i.e. actually show it in the UI as another data value?
Thanks in advance,
Ralph
Comment