mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
[http_load_] Also count elements served over HTTPS
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
parent
17b36345fa
commit
cb2a0e6488
@ -309,7 +309,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") {
|
|||||||
$verbose && print " Processing: " . $$link[0] . " " . $$link[1] . " " . $$link[2] . "\n";
|
$verbose && print " Processing: " . $$link[0] . " " . $$link[1] . " " . $$link[2] . "\n";
|
||||||
|
|
||||||
# Extract the hostname and add it to the hash
|
# Extract the hostname and add it to the hash
|
||||||
if($$link[2] =~ m/http\:\/\/([^\/]+).*/){
|
if($$link[2] =~ m/https?\:\/\/([^\/]+).*/){
|
||||||
$host=$1;
|
$host=$1;
|
||||||
$output{"elements_" . $host}+=1;
|
$output{"elements_" . $host}+=1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user