ping parameters are different on openbsd,freebsd and linux - reed-alert - Lightweight agentless alerting system for server HTML git clone git://bitreich.org/reed-alert/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/reed-alert/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 0056be3ce455af79ea4f45815f1fa9686af84e5f DIR parent f9282edcbce6f644b23e7584dc26a0ce02e1c145 HTML Author: Solene Rapenne <solene@perso.pw> Date: Fri, 25 Jan 2019 11:04:45 +0100 ping parameters are different on openbsd,freebsd and linux Diffstat: M probes.lisp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- DIR diff --git a/probes.lisp b/probes.lisp @@ -104,7 +104,13 @@ (create-probe ping - (command-return-code (list "ping" "-w1" "-c2" (getf params :host)))) + (command-return-code + #openbsd + (list "ping" "-w1" "-c2" (getf params :host)) + #freebsd + (list "ping" "-W1" "-c2" (getf params :host)) + #linux + (list "ping" "-W1" "-c2" (getf params :host)))) (create-probe number-of-processes