The local agent probes

Those probes use a local agent on linux hosts. This agent directly parses ”/proc” and ”/sys”.

The nightly build can be downloaded

The github URL to the agent is JrdsAgent's github.

git clone git://github.com/fbacchella/jrdsagent.git jrdsagent
cd jrdsagent/

To build it, create a file called build.properties that point to the jrds build path

jrds.home=...

And build it

ant

It will build build/jrdsagent.jar that can be directly used with a -jar argument. The default listening port is 2002. But it can be changed using the jrds.port property. It's totally standalone and can be copied and run directly on any host.

 java -Djrds.port=2002 -jar build/jrdsagent.jar 

The jar is also the probes plug-in, so it must be declared on the server that run jrds, in the jrds.properties files :

libspath=.../jrdsagent.jar

The connection class for this probe is jrds.probe.RMIConnection. If the connection used is jrds.probe.LocalRMIConnection, then jrdsagent is run within jrds. It should be obvious that it's usefull only for the localhost, but it then can run very fast, without any network and RMI over head.

 
sourcetype/jrds_agent/start.txt · Last modified: 2012/03/19 11:32 by twixer     Back to top