Ad Widget

Collapse

Getting variable from Zabbix Web Scenario not into next step but as monitored value?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ausserirdischesindgesund
    Junior Member
    • Jul 2025
    • 1

    #1

    Getting variable from Zabbix Web Scenario not into next step but as monitored value?

    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
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    IIRC web scenario does not work this way, they do not record data from page. They just have those fixed built-in items.They just verify if it is working. If yo want a value be pulled, you need http agent type items. or script type...

    Comment

    Working...