2
0
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:
Olivier Mehani 2017-06-14 21:48:31 +10:00
parent 17b36345fa
commit cb2a0e6488

View File

@ -309,7 +309,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") {
$verbose && print " Processing: " . $$link[0] . " " . $$link[1] . " " . $$link[2] . "\n";
# Extract the hostname and add it to the hash
if($$link[2] =~ m/http\:\/\/([^\/]+).*/){
if($$link[2] =~ m/https?\:\/\/([^\/]+).*/){
$host=$1;
$output{"elements_" . $host}+=1;
}