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

主机信息警告能否添加显示ip功能 #63

Closed
lls275 opened this issue Jul 3, 2022 · 3 comments
Closed

主机信息警告能否添加显示ip功能 #63

lls275 opened this issue Jul 3, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@lls275
Copy link

lls275 commented Jul 3, 2022

主机信息警告能否添加显示ip功能?比如能否显示ip(168.****.87)。

online_tpl =  "{{config.title}} \n[主机故障] {{host.alias}} ( {{host.ip}} : 主机恢复上线啦"
offline_tpl = "{{config.title}} \n[主机故障] {{host.alias}} ( {{host.ip}} ): 主机已经掉线啦"

最终TG上显示则为:

 [主机故障] 墨尔本(134.****.35) : 主机已经掉线啦
 [主机故障] 墨尔本(168.****.87) : 主机已经掉线啦

ip 可以不显示整个ip,仅仅显示首和尾,这样比较好区分。特别是在该区有相同的VPS时会比较好方便管理和区分。

@zdz
Copy link
Owner

zdz commented Jul 3, 2022

  1. 目前版本告警无法取到 ip
  2. 告警都是自己看的,为什么要打码?
  3. namealias 已足够区分主机

@mjjrock
Copy link
Contributor

mjjrock commented Jul 5, 2022

+1 告警支持ip显示

@zdz zdz added the enhancement New feature or request label Jul 5, 2022
@zdz
Copy link
Owner

zdz commented Jul 14, 2022

https://github.com/zdz/ServerStatus-Rust/releases/tag/v1.5.4

{{ip_info.query}} 主机 ip

@zdz zdz closed this as completed Jul 17, 2022
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

3 participants