diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-06-11 23:40:04 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-06-11 23:40:04 +0200 |
commit | a80eafbf9cab9d80c526c504edf2ee4446a072d9 (patch) | |
tree | 505a6caeb312d63e8b2d9f1814c9b2e807258d51 /contrib/check_ms_spooler.pl | |
parent | 4e9eedc8debe1388996bd5631f2df6e057854061 (diff) | |
download | monitoring-plugins-a80eafbf9cab9d80c526c504edf2ee4446a072d9.tar.gz |
Improve parsing of ping6(1) output
The ping6(1) implementation provided by Debian's iputils-ping package
may produce output such as the following:
| 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2009ms
There's a corresponding pattern in check_ping.c:458:
| "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss"
Without this fix, the pattern in check_ping.c:456 matched first (as
sscanf(3) interprets "+3" as a match for "%d"):
| "%*d packets transmitted, %*d received, %d%% loss, time"
(#1894850 - Debian bug report #514588 - Matej Vela)
Diffstat (limited to 'contrib/check_ms_spooler.pl')
0 files changed, 0 insertions, 0 deletions