mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue