forked from Lainports/opnsense-ports
11 lines
496 B
Text
11 lines
496 B
Text
Can be removed when 10.4 goes out of support.
|
|
|
|
--- plugins/node.d/ping_.in.orig 2018-03-28 19:36:43 UTC
|
|
+++ plugins/node.d/ping_.in
|
|
@@ -91,5 +91,5 @@ fi
|
|
|
|
|
|
# shellcheck disable=SC2086
|
|
-"${ping:-$PING}" ${ping_args:-'-c 2'} "${host}" ${ping_args2:-} \
|
|
+"${ping:-$PING}" ${ping_args:-'-c 2'} "${host}" ${ping_args2:- } \
|
|
| perl -n -e 'print "ping.value ", $1 / 1000, "\n" if m@min/avg/max.*\s\d+(?:\.\d+)?/(\d+(?:\.\d+)?)/\d+(?:\.\d+)?@; print "packetloss.value $1\n" if /(\d+)% packet loss/;'
|