1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Fixed autoconf on http_request_time

Previously it would error since the $url variable is
the array key isn't the url to check it's a santized version
This commit is contained in:
Rowan Wookey 2020-04-26 21:58:37 +01:00 committed by Lars Kruse
parent 699158fd17
commit 8939111823

View file

@ -90,7 +90,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "autoconf" )
my $ua = LWP::UserAgent->new(timeout => $timeout);
foreach my $url (keys %URLS) {
my $response = $ua->request(HTTP::Request->new('GET',$url));
my $response = $ua->request(HTTP::Request->new('GET',$URLS{$url}{'url'}));
if ($response->is_success) {
next;
}