IcmpMonitor
The ICMP monitor tests for ICMP service availability by sending echo-request ICMP messages. The service is considered available when the node sends back an echo-reply ICMP message within the specified amount of time.
Configuration and use
Parameter | Description | Default |
---|---|---|
timeout |
Time in milliseconds to wait for a response. |
800 |
allow-fragmentation |
Whether to set the "Don’t Fragment" bit on outgoing packets. |
true |
dscp |
DSCP traffic-control value. |
0 |
packet-size |
Number of bytes of the ICMP packet to send. |
64 |
thresholding-enabled |
Enables ICMP thresholding. |
true |
This monitor implements the Common Configuration Parameters.
Examples
Examples use CentOS/RHEL path names.
For Debian/Ubuntu, use /var/lib/opennms/rrd/response
.
<service name="ICMP" interval="300000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="rrd-repository" value="/opt/opennms/share/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
</service>
<monitor service="ICMP" class-name="org.opennms.netmgt.poller.monitors.IcmpMonitor"/>
<!-- Advanced example: set DSCP bits and send a large packet with allow-fragmentation=false -->
<service name="ICMP" interval="300000" user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="dscp" value="0x1C"/> <!-- AF32: Class 3, Medium drop probability -->
<parameter key="allow-fragmentation" value="false"/>
<parameter key="packet-size" value="2048"/>
<parameter key="rrd-repository" value="/opt/opennms/share/rrd/response"/>
<parameter key="rrd-base-name" value="icmp"/>
<parameter key="ds-name" value="icmp"/>
</service>
<monitor service="ICMP" class-name="org.opennms.netmgt.poller.monitors.IcmpMonitor"/>