Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REGEX in http keyword #2735

Open
1 task done
xseth opened this issue Feb 7, 2023 · 1 comment
Open
1 task done

REGEX in http keyword #2735

xseth opened this issue Feb 7, 2023 · 1 comment
Labels
area:monitor Everything related to monitors feature-request Request for new features to be added type:enhance-existing feature wants to enhance existing monitor

Comments

@xseth
Copy link

xseth commented Feb 7, 2023

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

UI Feature, Other

🔖 Feature description

It would be great to be able to test the presence of one value or another in a page, for example REGEX : CRIT|WARN

✔️ Solution

I have a page with output HTML and multiple check val="OK" or CRIT or WARN...
I would like to test if the page content one CRIT or WARN
regex : CRIT|WARN

Thanks

❓ Alternatives

No response

📝 Additional Context

No response

@mschoeffmann
Copy link

mschoeffmann commented Nov 16, 2023

+1 for this - especially when monitoring big infrastructure providers (looking at https://www.cloudflarestatus.com/api) to allow "normal" and "minor" but alert on "major", "critical" and any other http error ...

anyway, for the Cloudflare status API, the "HTTP Json Query" monitor can be used:

  • URL: https://www.cloudflarestatus.com/api/v2/status.json
  • Json Query: status.indicator in ["normal", "minor"]
  • Expected Value: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:monitor Everything related to monitors feature-request Request for new features to be added type:enhance-existing feature wants to enhance existing monitor
Projects
None yet
Development

No branches or pull requests

3 participants