TrivialTimeMonitor

TrivialTimeMonitor connects to a server that supports the Time Protocol and sends the time as a 32-bit unsigned integer in binary format and in network byte order, representing the number of seconds since 00:00 (midnight) 1 January, 1900 GMT, and fails if the defined clock skew is too large. NOTE: This detector uses the Time Protocol, not NTP.

Monitor facts

Class Name

org.opennms.netmgt.poller.monitors.TrivialTimeMonitor

Configuration and use

Table 1. Optional monitor-specific parameters for the TrivialTimeMonitor
Parameter Description Default

protocol

Default Layer 4 protocol to use.

tcp

port

The destination port.

37

allowedSkew

Default permissible skew in seconds between the remote and local clocks.

30

retry

Number of attempts to get a response.

0

timeout

Time in milliseconds to wait for a response.

3000

This monitor implements the Common Configuration Parameters.

Examples

<service name="TrivialTime" interval="300000" user-defined="false" status="on">
  <parameter key="protocol" value="tcp"/>
  <parameter key="port" value="37"/>
  <parameter key="allowedSkew" value="30"/>
  <parameter key="retry" value="2"/>
  <parameter key="timeout" value="1000"/>
  <parameter key="rrd-repository" value="/opt/opennms/share/rrd/response"/>(1)
  <parameter key="rrd-base-name" value="trivialTime"/>
  <parameter key="ds-name" value="trivialTime"/>
</service>
<monitor service="TrivialTime" class-name="org.opennms.netmgt.poller.monitors.TrivialTimeMonitor"/>
1 Update this path as appropriate on your server. Debian installs use the /var/lib/opennms/rrd/response directory instead.