Ad Widget

Collapse

Web Monitoring POST Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kitkit201
    Junior Member
    • Jan 2014
    • 9

    #1

    Web Monitoring POST Question

    Hi there,

    I recently inherited a Zabbix 2.2.0 system from a leaving System Admin.

    Anyways, I am using a POST method to upload a database file. On the application, when the user submits, it goes into a Processing page and then finally a Confirm and submit page.

    I am trying to create a web scenario check to issue me an OKAY check when it gets to the Confirm page.

    The Steps are
    Upload database file -> Processing page -> Confirm page

    Once I submit the file, the subsequent two pages should show up in order by itself.

    I want to check that it gets to the confirm page, how do i do that?
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Interesting questions, but I see some showstoppers for using native Zabbix features?
    1.) How are you uploading file for web check via Zabbix?
    IMHO this is not possible to upload file via Zabbix web check feature -> solution is custom script
    2.) How is redirecting between steps (Upload database file -> Processing page -> Confirm page)?
    Zabbix uses curl, so you can handle only redirect on HTTP level. Handling of javascript/HTML redirects is not possible.

    It depend on your current implementation of checked system, but IMHO the best solution will be custom script/code for checking (htmlunit+java, selenium, PhantomJS, ...) and then you will parse only final values to Zabbix.
    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

    • kitkit201
      Junior Member
      • Jan 2014
      • 9

      #3
      Thank you for the reply.

      Is there any way in Zabbix in the Web Scenerio to actually see the resulting page after a step? I'm having a really hard time debugging what the problem is in the logs. I see HTTP result in the monitoring, but that's not really helpful when i'm driving almost blind.

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        You can't see web output in web check.
        But you can create new Zabbix item web.page.get[host,<path>,<port>] (only GET request) 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...