Pinger

Lightweight network link performance monitor


Installation

It's a Win32 executable.  Just place in a directory and run it.

It works under WINE, too.


Usage

Pinger, version 20140211.13 by Charles Boling

Continually pings a host until halted with Ctrl-C.
Timestamped log will appear in C:\src\Delphi\Pinger\ the same dir as the .exe

USAGE:   pinger.exe host [option=value] [option=value] ...
         (Host = Name or IP address of device to ping

EXAMPLE: pinger test.com interval=1 timeout=.08 "FailCmd=page 5551212 Slow Net!"


OPTIONS:
Interval = number of seconds between pings (decimals okay); default=5
Timeout  = seconds to wait for response (decimals okay); default=1
MaxFail  = Max # of consecutive failures before alert; default=5
FailCmd  = Command to execute after MaxFail failures; default=""
           (Also executes at 5*MaxFail, 20*MaxFail)
           Surround entire parameter in quotes if command has spaces, etc.

Host must be the first parameter; order of other options doesn't matter.

Sample Output

2014-02-11 14:19:18 - Command: pinger google.com interval=1 timeout=.06 "FailCmd=sendpage 5551212 Slow Internet!"
2014-02-11 14:19:18 - 
2014-02-11 14:19:18 - Ping times (ms) to google.com:
2014-02-11 14:19:18 - 
2014-02-11 14:19:18 - 160 (FAIL)
2014-02-11 14:19:19 - 62
2014-02-11 14:19:21 - 61 (FAIL)
2014-02-11 14:19:22 - 56
2014-02-11 14:19:23 - 59
2014-02-11 14:19:24 - 58
2014-02-11 14:19:25 - 59
2014-02-11 14:19:26 - 61 (FAIL)
2014-02-11 14:19:27 - 58
2014-02-11 14:19:28 - 58
2014-02-11 14:19:29 - 57
 

Notes

Sending ICMP ECHO packets (pinging) requires administrative permissions in Windows.

(WINE mimics this behavior; in Linux, you must log in as root to use this program.)

You may run multiple instances in the same directory, as long as you start them at least one second apart.
Who needs Nagios? ;-)


Change Log

2014-02-11 - Released.

Downloads

pinger.zip (175k)
Source Code (7k)