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

有些时候短信长度受限,怎么修改短信内容。可以支持自定义。 #4

Open
sageskr opened this issue Jun 3, 2016 · 1 comment

Comments

@sageskr
Copy link

sageskr commented Jun 3, 2016

有些时候短信长度受限,怎么修改短信内容。可以支持自定义。

@laiwei
Copy link
Contributor

laiwei commented Jun 6, 2016

需要修改alarm的代码

或者参考社区贡献的 https://github.com/mircoteam/mailtemplate
用来自定义告警内容

比如

报警状态:[PROBLEM]
报警级别:[P0]
报警主机:[localhost]
监控指标:[agent.alive[客户端存活]]
监控标签:[]
报警阀值:[all(#1) 1 == 1]
报警次数:当前第 7 次,最大 7 次
报警时间:[2016-05-04 14:11:00]
规则配置:[ http://127.0.0.1:8899/template/view/1 ]

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

No branches or pull requests

2 participants