Set User-Agent in dsa-check-mirrorsync
authorJulien Cristau <jcristau@debian.org>
Fri, 23 Feb 2018 15:32:40 +0000 (16:32 +0100)
committerJulien Cristau <jcristau@debian.org>
Fri, 23 Feb 2018 15:35:15 +0000 (16:35 +0100)
dsa-nagios-checks/checks/dsa-check-mirrorsync
dsa-nagios-checks/debian/changelog

index 5a45e0c..c2445f1 100755 (executable)
@@ -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'};
index 331def9..2fb99fd 100644 (file)
@@ -1,3 +1,9 @@
+dsa-nagios-checks (115) UNRELEASED; urgency=medium
+
+  * Set a specific User-Agent in dsa-check-mirrorsync
+
+ -- Julien Cristau <jcristau@debian.org>  Fri, 23 Feb 2018 16:33:25 +0100
+
 dsa-nagios-checks (114) unstable; urgency=medium
 
   * Add dsa-check-openmanage to monitor Dell hosts.