Ad Widget

Collapse

Web monitoring for a page that does not contain text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steven@steventharp.com
    Junior Member
    • Oct 2019
    • 3

    #1

    Web monitoring for a page that does not contain text

    I want to write a Web Monitoring test to see a web a page does not contain text. I need this to test the Web Site rights are functional. I know how to write Regex and I see that it can be used but I am not seeing how to monitor for a negative.

    My current required is web.page.regexp[thettp.org,/home,443,"@CDA"]
    CDA is a a Regular Expression .*(CDA).* Set to False
    The error I see is "Step "TEST NDA" [6 of 6] failed: required pattern "web.page.regexp[thettp.org,/home,443,"@CDA"]" was not..
    Last edited by [email protected]; 07-10-2019, 23:01.
  • Mike2K
    Member
    • Oct 2018
    • 62

    #2
    If you are just trying to see if you can load the page, why use a regex at all ? Load the page and check if you get an HTTP 200 code...?

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      Negation is not easy with POSIX ERE. One way is, if you want to negate the word "test", use: ^([^t]|t[^e]|te[^s]|tes[^t])

      Comment

      • steven@steventharp.com
        Junior Member
        • Oct 2019
        • 3

        #4
        Ok the idea of loading the page and look at codes was a good one I want it to not be there and am seeing a "404 Not Found" so I will use it as the return code. Thanks fixed.

        Comment

        Working...