From 83c8c38d49c25c974361de75e365d1bb0508e5e6 Mon Sep 17 00:00:00 2001 From: David Wahlund Date: Sun, 30 Jun 2019 22:16:56 +0200 Subject: [PATCH] Wrong ping flag on BSD -s is packet size, -S is source --- plugins/inputs/ping/ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/ping/ping.go b/plugins/inputs/ping/ping.go index 28e967a85c8e9..efd1da32e1b41 100644 --- a/plugins/inputs/ping/ping.go +++ b/plugins/inputs/ping/ping.go @@ -234,7 +234,7 @@ func (p *Ping) args(url string, system string) []string { case "darwin": args = append(args, "-I", p.Interface) case "freebsd", "netbsd", "openbsd": - args = append(args, "-s", p.Interface) + args = append(args, "-S", p.Interface) case "linux": args = append(args, "-I", p.Interface) default: