From: Julien Cristau Date: Fri, 23 Feb 2018 15:32:40 +0000 (+0100) Subject: Set User-Agent in dsa-check-mirrorsync X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-nagios.git;a=commitdiff_plain;h=8d8fa914af8cf9901e3cba8f23631dfe89cf57e1 Set User-Agent in dsa-check-mirrorsync --- diff --git a/dsa-nagios-checks/checks/dsa-check-mirrorsync b/dsa-nagios-checks/checks/dsa-check-mirrorsync index 5a45e0c..c2445f1 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->agent("dsa-check-mirrorsync"); $ua->timeout(10); $ua->proxy('http', "$schema://$slave"); print "Requesting $schema://$host/$path from $slave\n" if $params->{'verbose'}; diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 331def9..2fb99fd 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -1,3 +1,9 @@ +dsa-nagios-checks (115) UNRELEASED; urgency=medium + + * Set a specific User-Agent in dsa-check-mirrorsync + + -- Julien Cristau Fri, 23 Feb 2018 16:33:25 +0100 + dsa-nagios-checks (114) unstable; urgency=medium * Add dsa-check-openmanage to monitor Dell hosts.