在我们的实验室中,我们目前正在使用两个系统来远程监控敏感数量等:
到目前为止,我们只能拥有 Icinga2 写无论它在 Graphite 上收到什么,我们都可以看到它。
是否有可能拥有 Icinga2 阅读 来自 Graphite ?还有其他程序直接将内容写入 Graphite,并且无法通过 DAQ 看门狗从 Icinga 读取(缺少端口)。理想情况下,我们希望在到达 Graphite 的任何东西上创建警报(Icinga2 可以做到)。
最佳答案
有几个 check_graphite 插件实现允许您查询 Graphite web 提供的 API。不幸的是,我在这里没有推荐,请尝试最适合您需求的 Google 点击。
它们都连接到 Graphite Web API:
http://graphite.readthedocs.io/en/latest/render_api.html
Graphite 本身已经非常强大,您可以让它聚合数据点并减少插件中的逻辑,以仅评估给定的阈值并返回输出和状态。
如果您使用的是 Grafana,您还可以查看他们的警报和通知条件,并让例如网络 Hook 将检查结果传回 Icinga 2 的 REST API。
http://docs.grafana.org/alerting/rules/
http://docs.grafana.org/alerting/notifications/
关于graphite - 从 Icinga2 读取 Graphite 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46160728/