From d4d4ddde3e2bfd2f3ab3655c1d533c3f36261a01 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 8 Jan 2014 22:50:21 +0100 Subject: check-mirrors: Use active FTP mode Accessing ftp://mirrors.fe.up.pt/pub/nagios-plugins/ is very slow when passive mode is used. As the EPSV command seems to be the culprit, an alternative would be to specify "--disable-epsv". diff --git a/bin/check-mirrors b/bin/check-mirrors index 9334417..d3fcfe9 100755 --- a/bin/check-mirrors +++ b/bin/check-mirrors @@ -264,7 +264,7 @@ for mirror in $mirrors do url="${mirror%/}/timestamp" - if curl -s -S -O -m 600 --retry 2 --ftp-method 'nocwd' "$url" \ + if curl -s -S -O -P '-' -m 600 --retry 2 --ftp-method 'nocwd' "$url" \ >'curl.log' 2>&1 then cmp -s 'expected' 'timestamp' \ -- cgit v0.10-9-g596f