2

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.

methode
  • 5,348
  • 2
  • 31
  • 42
hitesh
  • 55
  • 1
  • 8

1 Answers1

2

You need something like the following in your riemann.config file:

(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. The message sent to nagios will contain the host, state, service and description from the event.

You can find more info looking into the documentation for integrating with other systems and the api docs specific to the nagios integration

nberger
  • 3,659
  • 17
  • 19
  • Thanks for the answer and sorry for the late reply..the above information is available in riemann docs.But i need info about configuration in nagios – hitesh Jul 17 '15 at 10:10
  • 1
    I just read your question again and it's very clear to me it's asking about configuration in Riemann to forward events to Nagios, and not about configuration in nagios to receive events from Riemann. My answer includes links and information from Riemann docs but also a full sample config specific to forward to nagios, which I couldn't find in the docs – nberger Jul 17 '15 at 11:39
  • Sorry for not asking properly. Could you please give me more details as i have asked. – hitesh Jul 20 '15 at 06:40