Thanks a lot for your detailed reply Preben! The "sendEmptyMessageWhenIdle" option sounds exactly what I was looking for. The other option you mention sounds interesting as well. How can I make a context/route report its health state via JMX? I know that Camel can be queried and controlled via JMX but how would it be possible to, e g, detect that the ftp component has stopped polling?
Or perhaps you mean that I would detect it using the " sendEmptyMessageWhenIdle" but report it via JMX? In my case I need to use Nagios in a passive configuration since we do not allow incoming traffic to the server. Therefore my Camel routes need to actively report both failures and heartbeats. A REST API won't fit the bill. /Bengt 2013/2/11 Preben.Asmussen <p...@dr.dk> > Hi Bengt > > On file endpoint you can enable sendEmptyMessageWhenIdle option that sends > an empty message if no files are available. This should also be possible on > ftp/sftp endpoints, and could trigger your route to send a heartbeat even > in > the absence of a file exchange. > > An other way to achieve monitoring is to let your Camel context/routes be > able to tell it's health state, so that each camel integration component > exposes a rest interface with health state info. > We are deploying in a war file so it's easy to expose a rest interface, and > for whatever monitoring solution to call http get and take action depending > on the healthstate. > > If you are running your routes as bundles in karaf, you could possible > expose the same healthstate info as MBeans, and then let Nagios query via > jmx. > > /Preben > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Check-that-file-component-is-still-polling-tp5727333p5727363.html > Sent from the Camel - Users mailing list archive at Nabble.com. >