-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
关于无法触发tg警告 #60
Comments
用下面命令测试一下,貌似 export RUST_LOG=trace
export RUST_BACKTRACE=1
# 根据配置发送测试消息,验证通知是否生效
./stat_server -c config.toml --notify-test |
❗ServerStatus test msg 按照您所说,可以看到一条消息,不过主机下线就没法警告了 |
按照您这些命令测试,是可以收到一条 ❗ServerStatus test msg的消息的。不过当主机下线时,面板可以看到主机是红色的,但是就是没法推送到tg上。 |
我晚点瞧瞧 |
好的,我是根据源码进行编译的。不知是不是源码有问题。我拉取的是最新的源码来编译的 |
跑一下 |
● stat_server.service - ServerStatus-Rust Server Jul 01 03:20:21 vultr systemd[1]: Started ServerStatus-Rust Server. |
非常棒!c彻底解决了。 不过我想请教一个问题,如果将url指向 /admin/status 代码怎么修改?
前端的css请求地址却变成了:https://www.xxx.com/admin/css/semantic.min.css,导致无法获取到css。 我对rust不熟悉,不知怎么修改 |
不用修改源码,用 nginx 配置重写一下 route 指向就行,或者 参考 #37 |
好的,已经配置好了。感谢作者 |
我的配置文件上,配置了tg的信息,并开启了推送功能,但无法推送!
但我通过 curl 方式区测试是正常的,能否告知我出了什么问题?
The text was updated successfully, but these errors were encountered: