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

Uptime-kuma cannot set multiple expected value judgments #4958

Closed
2 tasks done
heilongbo opened this issue Jul 23, 2024 · 3 comments
Closed
2 tasks done

Uptime-kuma cannot set multiple expected value judgments #4958

heilongbo opened this issue Jul 23, 2024 · 3 comments
Labels

Comments

@heilongbo
Copy link

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

To monitor the status of the Elasticsearch cluster, I hope to detect the string values ​​of "green" and "yellow", so I expect the expected value to be predictable, rather than a fixed value.

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.13

💻 Operating System and Arch

debian 12

🌐 Browser

google chrome 版本 126.0.6478.127

🖥️ Deployment Environment

  • Node.js: 20.4
  • npm: 9
  • Filesystem used to store the database on: SSD
  • number of monitors: 30
@heilongbo heilongbo added the help label Jul 23, 2024
@CommanderStorm
Copy link
Collaborator

I expect the expected value to be predictable, rather than a fixed value.

I don't know what you want.
This might be able to be solved via the json-query monitor, or you might need to break out the push monitor for fully custom logic.
Examples how to use the push monitor are here: https://github.com/louislam/uptime-kuma/tree/master/extra/push-examples

@heilongbo
Copy link
Author

I don't know what you want.

I mean, can the expected value be matched by regular expression? For example, in the case of Elasticsearch, if the health status changes to green, it cannot be considered a failure. Only the health status red is considered a failure. So I tried to use regular expression to match the green and yellow characters in the expected value, but uptime-kuma could not recognize it!

@CommanderStorm
Copy link
Collaborator

Regex is tracked in #2735. Plan is to do this via #3919
We currently support this via https://docs.jsonata.org/regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants