Skip to content

Commit

Permalink
Support parsing IPv6 output in OpenSSHJunOSPing Plugin (#398)
Browse files Browse the repository at this point in the history
* Update OpenSSHJunOSPing.pm

Support parsing IPv6 output.

* Update CHANGES

---------

Co-authored-by: Tobias Oetiker <tobi@oetiker.ch>
  • Loading branch information
zimage and oetiker committed May 1, 2024
1 parent 89df55b commit 98d1bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

- Support parsing IPv6 output in OpenSSHJunOSPing Plugin @zimage
- Enhancement to SSHProbe allows specification of IPv4 vs IPv6 transport, #385
- InfluxDB 2.x v1 (compatibility) api doesn't set the "WWW-Authenticate" header (violating rfc7235).
Work around this issue by manually setting the Authorization header @HandyMenny
Expand Down
2 changes: 1 addition & 1 deletion lib/Smokeping/probes/OpenSSHJunOSPing.pm
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ sub pingone ($$){
my @times = ();
for (@output){
chomp;
/^\d+ bytes from \S+: icmp_seq=\d+ ttl=\d+ time=(\d+\.\d+) ms$/ and push @times,$1;
/^\d+ bytes from \S+[:,] icmp_seq=\d+ (?:ttl|hlim)=\d+ time=(\d+\.\d+) ms$/ and push @times,$1;
}
@times = map {sprintf "%.10e", $_ / $self->{pingfactor}} sort {$a <=> $b} @times;
return @times;
Expand Down

0 comments on commit 98d1bd2

Please sign in to comment.