Ad Widget

Collapse

Web scenario to use POST

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • d.kagarlickij
    Member
    • Oct 2014
    • 40

    #1

    Web scenario to use POST

    Hello!
    I have web page and have to monitor it status codes.
    When I use GET I have 405 code - http://prntscr.com/80bgfx
    When I use POST I have 200 code - http://prntscr.com/80bgqw

    I created web scenario with one step, and result is 405 - http://prntscr.com/80bh7r

    It seems like Zabbix use GET by default?

    How can I use POST instead?

    Thank's!
  • akbar415
    Senior Member
    • May 2015
    • 119

    #2
    Originally posted by d.kagarlickij
    Hello!
    I have web page and have to monitor it status codes.
    When I use GET I have 405 code - http://prntscr.com/80bgfx
    When I use POST I have 200 code - http://prntscr.com/80bgqw

    I created web scenario with one step, and result is 405 - http://prntscr.com/80bh7r

    It seems like Zabbix use GET by default?

    How can I use POST instead?

    Thank's!
    What version of zabbix you are using.
    What you configured in the post field of your web scenario?

    Comment

    • d.kagarlickij
      Member
      • Oct 2014
      • 40

      #3
      I use Zabbix 2.2.9
      I have nothing on Post field because I don't understand yet what to put there.

      Comment

      • jamesNJ
        Senior Member
        • Jun 2015
        • 103

        #4
        The web documentation is pretty clear in this area. I'm looking at zabbox docs 2.4.5 section 8 about web monitoring, and there is a 'real life scenario' that acts as a good example.

        If you don't understand how web transactions work, I would suggest you read up on that, the protocol, and methods available. GET is the method used to pull static information. POST is the method used transmit form data to a web app so that it can respond in some custom way.

        I zabbix you would need to know the URL of the web page your form directs data to, the FORM elements on that page, and then code them up into a web scenario.

        Comment

        • d.kagarlickij
          Member
          • Oct 2014
          • 40

          #5
          For now I use Advanced Rest Client plugin for Chrome.
          I paste link to it and select POST method without any FORM elements.
          And I get Status code 200.

          How can I do the same with Zabbix?
          I look across zabbix docs & life scenario but still can't get it.

          Comment

          Working...