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

HTTP GET方式的服务监控能否指定成功状态的响应码? #984

Open
2 tasks done
wlnxing opened this issue Feb 1, 2025 · 1 comment
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@wlnxing
Copy link

wlnxing commented Feb 1, 2025

运行环境

6.8.0-1020-azure #23~22.04.1-Ubuntu SMP Mon Dec 9 17:50:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Nezha 版本

1.7.0

描述问题

经常需要通过http监控一些网页是否正常, 正常返回200 不正常返回502, 但是因为都有正常返回, 所以哪吒认为都是成功的.

不知能否自定义成功的响应的状态码, 然后非成功状态码都是失败?

复现步骤

配置信息

附加信息

验证

  • 我确认这是一个 nezha (哪吒面板) 的问题。
  • 我已经搜索了 Issues,并确认该问题之前没有被反馈过。
@wlnxing wlnxing changed the title http GET方式的服务监控能否指定某个响应码是正常状态? http GET方式的服务监控能否指定成功状态的响应码? Feb 1, 2025
@wlnxing wlnxing changed the title http GET方式的服务监控能否指定成功状态的响应码? HTTP GET方式的服务监控能否指定成功状态的响应码? Feb 1, 2025
@uubulb uubulb added the enhancement New feature or request label Feb 1, 2025
@uubulb
Copy link
Contributor

uubulb commented Feb 1, 2025

关于 502 的疑问,现在 200...400 之外的状态码都会返回错误,502 应该也是错误吧,具体可以看下 Agent 代码

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

No branches or pull requests

2 participants