Ad Widget

Collapse

Get output of web scenario step

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterloron
    Junior Member
    • Jan 2014
    • 5

    #1

    Get output of web scenario step

    I'm using Zabbix 2.2 (appliance for now), and am trying to get a web scenario step to work. I'm hitting an Atlassian Stash status page, which returns a JSON snippet with the service status, like this:

    {"state":"RUNNING"}

    The scenario step is very simple. I have the URL in there, the above snippet for the String parameter, and 200 for the code. I'm seeing this in the zabbix log:

    cannot process step "Get Status" of web scenario "Stash Web Check" on host "srred1stash01": required pattern not found

    I've tried various subsets of the whole string, but none of them work.

    Is there a way to get the output of the web request to see what is going on?
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    You can't see web output in web check.
    But you can create new Zabbix item web.page.get[host,<path>,<port>] and then you will see web output in item history.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...