X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-mirrorsync;h=c2445f11395e173b3a90d03c2584921200252eea;hb=6ea636ec59ec4213509990b8de6afa3c86571dfd;hp=8e8ec08e210041e30e7aa3aa5b190e80f208e68b;hpb=b194da5e1d42c5af4b263a7a076d0e512f794250;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..c2445f1 100755 --- a/dsa-nagios-checks/checks/dsa-check-mirrorsync +++ b/dsa-nagios-checks/checks/dsa-check-mirrorsync @@ -111,6 +111,8 @@ my $schema = $params->{'ssl'} ? 'https' : 'http'; foreach my $slave (@slaves) { my $ua = LWP::UserAgent->new; + $ua->agent("dsa-check-mirrorsync"); + $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");