简体   繁体   English

配置 nagios riemann 集成进行监控

[英]configure nagios riemann integration for monitoring

Hi i want to know how can i configure Riemann to forward events to Server This gives the API for Riemann integration but there is not enough info of doing it.I am new to Riemann and i am unable to figure out a way.嗨,我想知道如何配置 Riemann 以将事件转发到服务器提供了用于 Riemann 集成的 API,但没有足够的信息来执行此操作。我是 Riemann 的新手,我无法想出办法。

You need something like the following in your riemann.config file:您需要在 riemann.config 文件中包含以下内容:

(let [nagios (nagios {:host "localhost" :port 5667 :password "secret" :encryption TRIPLE_DES})]
  (streams
    (where (service "some-critical-service")
      nagios)))

It will forward the events from service "some-critical-service" to nagios.它将事件从服务“some-critical-service”转发到 nagios。 The message sent to nagios will contain the host, state, service and description from the event.发送到 nagios 的消息将包含来自事件的主机、状态、服务和描述。

You can find more info looking into the documentation for integrating with other systems and the api docs specific to the nagios integration您可以在查看与其他系统集成文档特定于 nagios 集成api 文档中找到更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM