In the instruction of camel-nagios,it says:"The Nagios component allows you
to send passive checks to Nagios",I am not only to do so,bu also hope to get
the corresponding results from nagios.
I have tried the following xml,and it works:
/
<bean id="nSettings" class="com.googlecode.jsendnsca.core.NagiosSettings" >
<property name="nagiosHost" value="192.168.0.167" />
<property name="port" value="5667" />
<property name="password" value="123456" />
<property name="encryptionMethod" value="0"/>
</bean>
<camelContext id="HTTP" xmlns="http://camel.apache.org/schema/spring">
<camel:route>
<camel:from uri="file:camel/Nagios?noop=true" />
<camel:convertBodyTo type="java.lang.String"/>
<setExchangePattern pattern="InOut"/>
<camel:to uri="log:RECEIVED?level=info"/>
<camel:to
uri="nagios://192.168.0.167:5667?nagiosSettings=#nSettings"
pattern="InOut"/>
</camel:route>
</camelContext>/
in the nagios server, I got the log like this:
<http://camel.465427.n5.nabble.com/file/n5744840/result.jpg>
how can I get the result message:"HTTP WARNING: HTTP/1.1 403 Forbidden" etc.
returned in the karaf screen or in the serviceMix's log file.
Ths ^_^
--
View this message in context:
http://camel.465427.n5.nabble.com/Can-I-use-camel-nagios-to-get-nagios-s-information-when-I-send-passive-check-through-it-tp5744840.html
Sent from the Camel Development mailing list archive at Nabble.com.