2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

[http_load_] Better User-Agent

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2017-06-13 22:43:43 +10:00
parent caea776610
commit 17b36345fa

View File

@ -95,7 +95,7 @@ my $debug=$ENV{MUNIN_DEBUG};
my $timeout=10; my $timeout=10;
my $max_redirects=10; my $max_redirects=10;
my $scriptname="http_load_"; my $scriptname="http_load_";
my $useragent="Mozilla/5.0"; my $useragent="Mozilla/5.0 (Munin; $scriptname)";
# Function to read the $url_file and return the contents in a hash # Function to read the $url_file and return the contents in a hash
sub read_urls{ sub read_urls{