JRDS can be used in passive mode, where data to be stored are received instead of being pull from nodes.
A generic probe is used for that, a PassiveProbe. It should not be necessary to override it, instead for each new listening protol, a new http://jrds.fr/apidoc-core/index.html?jrds/starter/Listener.html must be written, that will be used to dispatch external message to the necessary probe.
A sample TrapListener is provided that does nothing really usable but can give hint about the implementation of new listener :
To use a listner, a XML for each listener must be added :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE listener PUBLIC "-//jrds//DTD Listener//EN" "urn:jrds:listner"> <listener class="jrds.snmp.TrapListener"> <attr name="port">1162</attr> <attr name="community">public</attr> <attr name="version">2</attr> </listener>
Nothing special is needed for probes using this listener :
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE host PUBLIC "-//jrds//DTD Host//EN" "urn:jrds:host"> <host name="localhost"> <probe type="GenericTrap" /> </host>
This is a preliminary implementation, feed back is welcome.