Passive probes

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 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"
<listener class="jrds.snmp.TrapListener">
    <attr name="port">1162</attr>
    <attr name="community">public</attr>
    <attr name="version">2</attr>

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" />

This is a preliminary implementation, feed back is welcome.

passiveprobes.txt · Last modified: 2015/02/16 22:06 by root     Back to top