Your message dated Mon, 12 Oct 2015 13:33:54 +0000
with message-id <[email protected]>
and subject line Bug#801068: fixed in liboping 1.8.0-2
has caused the Debian Bug report #801068,
regarding audible ping
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
801068: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801068
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: oping
Version: 1.7.0-1
Severity: wishlist
Tags: patch
hi barak!
considering you like the prettyping patch to oping, and that Debian
was faster at including it than upstream, i thought you would like the
following one as well:
https://github.com/octo/liboping/pull/6
patch attached!
a.
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (500, 'stable'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages oping depends on:
ii libc6 2.19-18+deb8u1
ii libncursesw5 5.9+20140913-1+b1
ii liboping0 1.7.0-1
ii libtinfo5 5.9+20140913-1+b1
oping recommends no packages.
oping suggests no packages.
-- no debconf information
>From b3dd77f89dc927ab3a877fb7d82850a1ceabf9e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <[email protected]>
Date: Mon, 5 Oct 2015 16:09:38 -0400
Subject: [PATCH] add bell output on successful pings
the rationale here is that it's actually pretty hard to do this with a
regular ping. you need a silly shell loop and it doesn't always work
right everywhere, because the output of the system ping is
platform-dependant. it also buffers stdout in some weird ways sometimes.
therefore, i think it's a great addition to oping.
the purpose of this is that it can be useful to "hear" ping packets
come back when doing network diagnostics. obviously, this will be
useless in finding out *failed* hosts if multiple hosts are selected,
as any sucessful host will produce a beep. but it can nevertheless be
used to trace network cables or problems without looking at the
console. i also use audible pings to let me know when a hosts returns
after a reboot.
Note that I had to struggle quite a bit to make my terminal bell work,
the following articles were used to generate documentation on how to
make that work reliably:
https://askubuntu.com/questions/228096/terminal-bell-doesnt-ring
also see the following for the original inspiration for this:
http://catb.org/jargon/html/P/ping.html
https://groups.google.com/forum/#!msg/comp.sys.next/JDaeD8oqarU/v8xaDS8kXM0J
---
src/mans/oping.pod | 44 ++++++++++++++++++++++++++++++++++++++++++++
src/oping.c | 13 ++++++++++++-
2 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/src/mans/oping.pod b/src/mans/oping.pod
index b609414..b8b8a5c 100644
--- a/src/mans/oping.pod
+++ b/src/mans/oping.pod
@@ -232,6 +232,50 @@ remainder.
=back
+=item B<-b>
+
+Audible bell. Print a ASCII BEL character (\a or 0x07) when a packet
+is received before the timeout occurs. This can be useful in order to
+monitory hosts' connectivity without looking physically at the
+console, for example to trace network cables (start audible beep,
+disconnect cable N: if beep stops, the cable was in use) or to tell
+when a host returns from a reboot.
+
+This relies on the terminal bell to be functional. To enable the
+terminal bell, use the following instructions.
+
+=over 4
+
+=item
+
+the visual bell is disabled in your terminal emulator, with the +vb
+commandline flag or the following in your .Xresources:
+
+ XTerm*visualBell: false
+
+=item
+
+the PC speaker module is loaded in your kernel:
+
+ modprobe pcspkr
+
+=item
+
+X11 has the terminal bell enabled:
+
+ xset b on; xset b 100
+
+=item
+
+and finally, if you are using PulseAudio, that the module-x11-bell
+module is loaded with a pre-loaded sample defined in your pulseaudio
+configuration:
+
+ load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/complete.oga
+ load-module module-x11-bell sample=x11-bell
+
+=back
+
=item B<-P> I<percent>
Configures the latency percentile to report. I<percent> must be a number
diff --git a/src/oping.c b/src/oping.c
index 53602d3..4559f79 100644
--- a/src/oping.c
+++ b/src/oping.c
@@ -208,6 +208,7 @@ static double opt_exit_status_threshold = 1.0;
static int opt_show_graph = 1;
static int opt_utf8 = 0;
#endif
+static int opt_bell = 0;
static int host_num = 0;
@@ -649,7 +650,7 @@ static int read_options (int argc, char **argv) /* {{{ */
while (1)
{
- optchar = getopt (argc, argv, "46c:hi:I:t:Q:f:D:Z:P:m:w:"
+ optchar = getopt (argc, argv, "46c:hi:I:t:Q:f:D:Z:P:m:w:b"
#if USE_NCURSES
"uUg:"
#endif
@@ -781,6 +782,9 @@ static int read_options (int argc, char **argv) /* {{{ */
opt_utf8 = 1;
break;
#endif
+ case 'b':
+ opt_bell = 1;
+ break;
case 'Z':
{
@@ -1566,6 +1570,13 @@ static void update_host_hook (pingobj_iter_t *iter, /* {{{ */
#if USE_NCURSES
}
#endif
+ if (opt_bell) {
+#if USE_NCURSES
+ beep();
+#else
+ HOST_PRINTF ("\a");
+#endif
+ }
}
else /* if (!(latency > 0.0)) */
{
--
2.1.4
--- End Message ---
--- Begin Message ---
Source: liboping
Source-Version: 1.8.0-2
We believe that the bug you reported is fixed in the latest version of
liboping, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Barak A. Pearlmutter <[email protected]> (supplier of updated liboping package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 12 Oct 2015 13:59:13 +0100
Source: liboping
Binary: liboping-dev liboping0 oping libnet-oping-perl
Architecture: source amd64
Version: 1.8.0-2
Distribution: unstable
Urgency: medium
Maintainer: Sebastian Harl <[email protected]>
Changed-By: Barak A. Pearlmutter <[email protected]>
Description:
libnet-oping-perl - module for ICMP latency measurement
liboping-dev - C/C++ library to generate ICMP ECHO_REQUESTs (development files)
liboping0 - C/C++ library to generate ICMP ECHO_REQUESTs
oping - sends ICMP_ECHO requests to network hosts
Closes: 749708 801068
Changes:
liboping (1.8.0-2) unstable; urgency=medium
.
* Accept audible ping patch (closes: #801068)
* Regenerating package should fix gzip timestamp issue (closes: #749708)
* Swizzle packaging repo pointer to active package maintenance repo
* Remove build dependency on perl-modules per lintian
Checksums-Sha1:
875be31caeb5b19c8cec3c322ca7615671e1d760 2043 liboping_1.8.0-2.dsc
d3a9ef3d094c0961b99a425114e6a8a0de1b8c51 11080 liboping_1.8.0-2.debian.tar.xz
26c1ee154ce0affeb8aaef703d118dfba517eb09 23598
libnet-oping-perl_1.8.0-1.21-2_amd64.deb
649b3b37ac6d7b1e2f1ca0ec892ce8445afe9bc0 45322 liboping-dev_1.8.0-2_amd64.deb
17db5ced3d2bdb12a6e640f3225c485c60d5b756 17878 liboping0_1.8.0-2_amd64.deb
ce1746817e1add1edde5b71b938489cf78daf946 33578 oping_1.8.0-2_amd64.deb
Checksums-Sha256:
012e340244f1ab7d44eede434791ac61edc0d1a74c85f01286ada5fbdb19d861 2043
liboping_1.8.0-2.dsc
cb2165dc75fb3c3d18c10299a571e02489d106a967c16e60ec629541c9702196 11080
liboping_1.8.0-2.debian.tar.xz
5e3f82b5ad5bac886520f52d3dcb99398954f2fcbc04e18f48a3b1876d99d786 23598
libnet-oping-perl_1.8.0-1.21-2_amd64.deb
892595e3ffd323e7845aad6b4710547892c01a9847726a4f63ed8b1bfe07e9b5 45322
liboping-dev_1.8.0-2_amd64.deb
95bc5d51c87175f3e9a2c97bfad6fcad5527fb944fc2a9992a37aad88d471447 17878
liboping0_1.8.0-2_amd64.deb
3fece005d02cf78868fa9630712876df1a5fd3551f26ad03886dc6c47ad32269 33578
oping_1.8.0-2_amd64.deb
Files:
c2f47843ebb7cb3526476509a730d532 2043 libs optional liboping_1.8.0-2.dsc
d36cf4be072965fd6cc577bb90ac43b3 11080 libs optional
liboping_1.8.0-2.debian.tar.xz
02dce7dc02a4156a37dd83f3f5d1ce39 23598 perl optional
libnet-oping-perl_1.8.0-1.21-2_amd64.deb
041a59f05f7fe31dbc3f1260528bfc5c 45322 libdevel optional
liboping-dev_1.8.0-2_amd64.deb
eda09e8a8ca0d438ae09aec58cd16d88 17878 libs optional
liboping0_1.8.0-2_amd64.deb
7a20c3e213beb737579e8f891ada9375 33578 net optional oping_1.8.0-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJWG7IhAAoJEBJbV0deGQ0YCToQANDgZ/k01yAvxnrdwJ+BLtUy
IbQBTMf7Eutx55opxceDwZUrcBZkfI79LThH1Hv+BOwSzduLz7YYPvikp4GoNcLP
hMxZ4R5RgCjl7tXN6Y9JfNLLXozrkQh7XHVa6Y0u8xJmizv90WM/ohoXdmZoL/B/
AJ8ZPNRyBabA/ZByIjytcNCkdX5UjOmH2gWHyuIUJwXszd6Wxl0w+zT26GQ1WpC0
YoQwfCa1zrxiL2JHTYYxlBQJPoDhqIcHcZgDL//Tt43jME7PqkVISitAATERYMrw
YTsBg4xl0Ucmy/WN88xh/mVL2W4Sl3xsCLmuzSPd5Bbi+GfQ71PAAqeIfq942dBS
LzMirFwzJptN4nhIz6CJNKlBEEqdsmW7RHTxtm0A+XKIg64gMGN6odpoQGAcvJqP
KR+ogU8geQGTYUoy+pnIJiZ87AWoYavry5YZF+icUL2GlLL5+Cv7F9Za8eMi5Cjt
Cr635AXiORj0+Xzzpls5ngoHna1my3MGerH3KQLrAJHCKhFOgne9R1q17lfu6TyU
0GH/rMgUmgGLV0aQ4Dvy7DMx4fzygk/4cHA/20dURnpNoBT3z2mfAWmRSSqPIUUa
uS2dhMEHAN3xamwfJSVtTYy4Va/Xyt5qxjAEYWpCmLXczIFX1qrhl3yiKxxxe5+0
QGBtA9JsEYCjIBewimja
=JJsH
-----END PGP SIGNATURE-----
--- End Message ---