mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51: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:
parent
699158fd17
commit
8939111823
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "autoconf" )
|
||||||
my $ua = LWP::UserAgent->new(timeout => $timeout);
|
my $ua = LWP::UserAgent->new(timeout => $timeout);
|
||||||
|
|
||||||
foreach my $url (keys %URLS) {
|
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) {
|
if ($response->is_success) {
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue