ganglia / ganglia-web

Ganglia Web Frontend
BSD 3-Clause "New" or "Revised" License
316 stars 168 forks source link

check_ganglia_metric.sh doesn't follow redirects #299

Open MitchellSingleton opened 8 years ago

MitchellSingleton commented 8 years ago

The cURL command needs to have the -L switch added so that redirection is followed.

This caused an issue for me when I turned on redirection for my apache instance to redirect all port 80 traffic to port 443.

<VirtualHost *:80> Redirect permanent / https://ipp2sen60.northamerica.cerner.net/

I was getting the HTML output from the 301 permanent redirect.

After adding the "L" switch, the script was able to redirect fine.