On Fri, Aug 12, 2011 at 10:25 PM, Tereza Nedelescu
<[email protected]> wrote:
> Hi,
>
> I tried sending Nagios passive checks from Spring using the following code,
> and Nagios didn't receive them:
>
> <camel:route>
> <camel:from uri="file:/path/input/Nagios?noop=true" />
> <camel:to uri="nagios://nagHost:5667?password=secret"
> />
> </camel:route>
>
> Then I looked up on the Camel website and I found this: In Spring XML it's
> just a matter of defining a Spring bean with the type EventNotifier and
> Camel will pick it up as documented here: EventNotifier 0..n Camel
> 2.2:
> To use 3rd part event notifiers. I'm sorry, that is not quite clear to me
> (What does it mean by 3rd part ?). Could you provide me with an example, as
> in, what should I add to my Spring code to get the message sent properly to
> Nagios ?
>
You may need to convert the file to a String before sending to nagios
<camel:from uri="file:/path/input/Nagios?noop=true" />
<camel:convertBodyTo type="java.lang.String"/>
<camel:to uri="nagios://nagHost:5667?password=secret" />
> Thanks,
> Tereza
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sending-Nagios-Passive-Checks-from-Spring-HowTo-tp4694564p4694564.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/