Ad Widget

Collapse

Monitoring HTTP Content on the Web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • afilis
    Junior Member
    • Oct 2019
    • 13

    #1

    Monitoring HTTP Content on the Web page

    Hello,

    I am looking for implement the solution for HTTP content monitoring. For example checking the word "Failed" or "Error" on the web page. Once this word showing up(found) on the web page, it should receve the alert from Zabbix.

    I know the option "Required string" on web scenarios, but is not what I am looking for, because "Required string" is something that exist on the web page and I am looking for the opposite.
    I mean don't send alert if "failed" or "error" string does not showing up on the web page.

    Hopefully it was understandable what I am asking

    Thanks in advance.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    After short googling I understand that it is not easy.
    Try this regex
    '^((?!Failed|Error).)*$'
    Sincerely yours,
    Aleksey

    Comment


    • afilis
      afilis commented
      Editing a comment
      Thanks for quick response.
      Where I have to add this parameter?

      Thanks,
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #3
    Originally posted by afilis
    Hello,
    I know the option "Required string" on web scenarios, but is not what I am looking for, because "Required string" is something that exist on the web page and I am looking for the opposite.
    You are already know where to use that pattern - in "Required string" field
    Sincerely yours,
    Aleksey

    Comment


    • afilis
      afilis commented
      Editing a comment
      Thank you very much, I've tested and it's working good for me.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #4
    Sincerely yours,
    Aleksey

    Comment

    • afilis
      Junior Member
      • Oct 2019
      • 13

      #5
      Actually I've tested again and it doesn't work properly

      Comment

      • ysus
        Senior Member
        • Mar 2016
        • 100

        #6
        You can use UserParameter of Zabbix agent on Zabbix server to curl | grep HTTP response.

        Comment

        • afilis
          Junior Member
          • Oct 2019
          • 13

          #7
          I found how to monitor the String on the page that is not exist, and if the string show up, send alert message. For Example srting is a word "FAILED or ERROR"
          So I just add the string to the field "Required string" BUT the trigger the I am choose from the list is "Failed step of scenario" with parameter .last()}=0

          Comment

          Working...