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

增加独立检测节点功能 #1

Open
shellus opened this issue Mar 4, 2018 · 1 comment
Open

增加独立检测节点功能 #1

shellus opened this issue Mar 4, 2018 · 1 comment

Comments

@shellus
Copy link
Owner

shellus commented Mar 4, 2018

在检测节点上部署一个php程序。可以主控+节点,来实现多节点监控。

需要考虑的问题:
1、报警设置
现在单一检测结果,所以可以设置例如ping大于100ms则报警。
如果多节点监测,那么结果会是多个,例如广州200ms,美国30ms,那么报警规则怎么设置呢?
可能的规则是:

  • “所有/任意一个 节点最大ping超过xx ms”、
  • “所有/任意一个 节点没有匹配到关键词”
  • “所有/任意一个 CPU占用超过xx%”
  • “所有/任意一个 磁盘可用低于xx%”

报警规则的复杂度很高啊。

是否还有没考虑到的报警规则?

@shellus
Copy link
Owner Author

shellus commented Mar 4, 2018

说干就干
第一步先把请求代码独立出来,ping和http request之类的检测方式,放在一个文件里面。
第二步把节点信息(url、秘钥)先手动加到数据库中,新建一个表,nodes。
第三步把执行检测那部分的代码改成请求节点去检测。

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

No branches or pull requests

1 participant