Skip to content

alttch/latencymon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

latencymon

TCP/UDP/ICMP latency monitoring tool. Detects network anomalies.

Usage example

TCP/UDP

latencymon client tcp 10.90.1.7:9999

TCP/UDP mode requires a server running on the remote:

latencymon server tcp 0.0.0.0:9999

ICMP (ping)

latencymon client icmp 10.90.1.7

In ICMP mode the tool works as a regular ping. No server is required, root permissions are required for the client.

Options

-T, --timeout <TIMEOUT>        [default: 30]
-I, --interval <INTERVAL>      [default: 1.0]
-S, --frame-size <FRAME_SIZE>  frame size (TCP/UDP) [default: 1500]
-W, --latency-warn <WARN>
-O, --output <OUTPUT_KIND>
          output kind [default: regular] [possible values: regular, syslog, chart, ndjson, eva4_trap]

Output warnings only

When --latency-warn option is specified (in seconds), logs only frames with latency equal or greater than the specified number.

Output to syslog

When --output syslog option is specified, logs all messages to syslog. Useful to run the tool in the background or as a system service.

Output as a chart

when --output chart option is specified, outputs the result as a live chart in the console

Output as JSON

  • when --output ndjson option is specified, outputs the result as ndjson in the following line format:
{"t":1703460047.4284112,"v":0.009972634}

where "t" field is the event timestamp and "v" is latency in seconds. In case of errors, "v" is set to -1.

Output as EVA ICS v4 native traps

when --output eva4_trap option is specified, outputs events as EVA ICS v4 native traps.

The following additional argument with output options is required:

--output-options path=127.0.0.1:1262,oid=sensor:network/lab-stor1/latency,units=ms

where:

  • path EVA ICS trap handler input socket path

  • oid item OID to receive state

  • units (optional) latency units: s, ms, us, ns. the default is s (seconds).