X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-mirrorsync;h=5a45e0c35aadb5578a00e3e16b8e4a2c69755bb4;hb=6b23f07c2d4436cb8de3f7925f8419212d07f738;hp=8e8ec08e210041e30e7aa3aa5b190e80f208e68b;hpb=37870ada4a261b4b2a2b625c5d8728c95d6a67ab;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-mirrorsync b/dsa-nagios-checks/checks/dsa-check-mirrorsync index 8e8ec08..5a45e0c 100755 --- a/dsa-nagios-checks/checks/dsa-check-mirrorsync +++ b/dsa-nagios-checks/checks/dsa-check-mirrorsync @@ -111,6 +111,7 @@ my $schema = $params->{'ssl'} ? 'https' : 'http'; foreach my $slave (@slaves) { my $ua = LWP::UserAgent->new; + $ua->timeout(10); $ua->proxy('http', "$schema://$slave"); print "Requesting $schema://$host/$path from $slave\n" if $params->{'verbose'}; my $response = $ua->get("$schema://$host/$path");