Skip to content

kamikat/ping-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ping+chart

Ping statistics in ASCII chart.

screenshot.png

Basic Usage

Create servers.lst like:

192.168.1.1
1.234.56.78
8.8.8.8
1.2.3.4

Plot realtime ping chart of packet loss statistics (the default metric):

bash ping+chart.sh

Available metrics:

  • sent - packets sent
  • receive - packets received
  • loss (default) - % packet loss
  • avg - average RTT value in millisecond
  • min - minumum RTT value
  • max - maximum RTT value
  • stddev - standard deviation on RTT

E.g, plot average network latency statistics:

bash chart+ping.sh avg

NOTE It can take seconds to generate a single chart.

chart.sh

The chart.sh is a bash implementation of ASCII chart inspired by asciichart with additional features:

  • Multiple data series
  • Color scheme (built-in dark/light theme and 256 color support)
  • Non-continuous data series support
  • Legend box (can be turn off by NO_LEGEND=1 flag)

Advanced Usage

Multiple Chart Display

Collect ping statistics in separate process:

bash ping.sh | tee ping.log

Plot chart continously:

bash ping+chart.sh -f ping.log [other chart options]

multiple chart display

Snapshot

Export chart script:

bash ping+chart.sh -q -r > loss-chart.cs

Plot chart from snapshot:

bash chart.sh < loss-chart.cs

Todos

  • better performance
  • Y-axis auto down scale (too slow)
  • chart legend display
  • tweak color scheme

License

(The MIT License)

About

Ping statistics in ASCII chart.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages