Skip to content

monitoring for a keyword #101

Answered by AnandChowdhary
euro asked this question in Ideas
Discussion options

You must be logged in to vote

This has been added as a feature, but I don't recommend this approach. If you show a custom error page, the HTTP response should not be 200. If you still want to mark a page as "down" or "degraded" by checking for some string in the response body, you can use this:

sites:
  - name: Custom down
    url: https://example.com
    __dangerous__body_down: "File not found"

In the above example, if the body HTML response includes the string "File not found", the site will be marked as "down". Similarly, you can use __dangerous__body_degraded to mark the site as "degraded" instead.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AnandChowdhary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #101 on December 16, 2020 15:00.