The linkchk package

[ Tags: gpl, program, system ] [ Propose Tags ]

It supports both IPv4 and IPv6. It works by monitoring the routing table and pinging the gateway (next hop) of a network interface. When the link is up and functioning the ping time is displayed in a small gtk window, otherwise the link status is displayed. linkchk can also run in a tty.

[Skip to Readme]


Versions 0.0.2
Change log ChangeLog
Dependencies base, gtk, haskell98, popenhs, regex-compat, unix [details]
License GPL
Author Jens-Ulrik Petersen
Maintainer Jens-Ulrik Petersen <>
Category System
Home page
Uploaded Sun Feb 17 05:18:02 UTC 2008 by GwernBranwen
Distributions NixOS:0.0.2
Executables linkchk
Downloads 343 total (3 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2017-01-03 [all 8 reports]
Hackage Matrix CI


Maintainer's Corner

For package maintainers and hackage trustees

Readme for linkchk-0.0.2

[back to package description]
linkchk is an active network link monitor
(c) 2001 Jens-Ulrik Petersen <>

It is licensed under GPL 2 and comes with no warranty.

The latest version can be found at: <>


By default it repeatedly pings the IPv4 (or IPv6) address of
the default gateway of a given interface appearing in the
routing table and shows the link status in a small gtk
window or in a tty.  With appropriate options it can be used
monitor any interface with a gateway or to ping any specific
host.  gtk+hs is currently required to build it.  The reason
for starting this project was to monitor an unreliable ppp
link at home with a tendency suddenly to start dropping
packets after a while.

Currently it uses some options of ping, ping6 and netstat
that are probably specific to Linux, but porting to most
unices should be straightforward I imagine.  If you get
linkchk working on another platform and can send me patches,
or can send me "ifconfig" and "netstat" output from your
platform, then I will be happy to try to fold them into the

If you find linkchk useful, or have comments, feedback or
other contributions, I would be glad to hear from you.


In order to build linkchk you need to have installed

* gtk+hs: a recent version (I'm using 0.12.1 from cvs)
	(available from <>).
* c2hs: a recent version (I'm using 0.10.1 from cvs)
* ghc: a recent version (I'm using 5.02)

Once you have those in place, you should be able to build in
the standard way;  ie something like:

	% ./configure
	% make
	% make install

should make and install the executable "linkchk", that
you can then test by running.  "linkchk --help" lists its

See the generic INSTALL instructions for more information on building.