|This monitor has been superseded by the IcmpMonitor.|
This monitor uses the isReachable method of the InetAddress Java class to test the reachability of a node. The service is considered available if isReachable returns true. See Oracle’s documentation for more details.
Note that under most configurations the IcmpMonitor supersedes the AvailabilityMonitor. The AvailabilityMonitor was developed when the IcmpMonitor was not remote enabled, to circumvent this limitation. Now, with the JNA ICMP implementation, the IcmpMonitor is remote-enabled under most configurations, so you should not need the AvailabilityMonitor.
Configuration and use
This monitor implements the Common Configuration Parameters.
Note that you must include the
monitor section for each service in your definition.
<service name="AVAIL" interval="300000" user-defined="false" status="on"> <parameter key="retry" value="2"/> <parameter key="timeout" value="5000"/> </service> <monitor service="AVAIL" class-name="org.opennms.netmgt.poller.monitors.AvailabilityMonitor"/>