#51 Disk Usage Error on dashboad (when using Proxies)

Unstable (example)
closed
None
5
2014-08-18
2011-07-07
Cam
No

Fog 0.31

The disk pie chart (along with the server stats page) time out and returns Unable to pull server information

The issue: the Fetch function uses the proxy settings provided in the fog settings (otherInfo>Fogsettings) but the storage node is most likely to be on the same LAN (or even the same server) and does not require a proxy sever.

FIX1: configure the proxy server to deal with internal requests.
OR
FIX2: at the very end of /var/www/fog/commons/functions.include.php

replace these 2 lines
<code>
//Proxy
if($Proxy)
</code>
with:
<code>
//Proxy
$url1 = explode("/", $URL);
$noproxyfor = array("192.168.", "10.");
foreach($noproxyfor as $ip) {
if(substr($url1[2], 0, strlen($ip)) == $ip) $Proxy = false;
}
if ($Proxy)
</code>

the array is of the IPs of the servers/ranges that you do not wish to proxy. it looks at the start of the hostname for the strings in the array
eg. any host starting with "192.168." and "10." so this would include "192.168.1.2" and "10.2.5.7"
feel free to add and edit the values in teh array for your lan/server

Discussion

  • Chad Gray

    Chad Gray - 2011-07-14

    Thanks! Just installed 0.31 and I was getting an error under the stats section. I could see "No error, but no data was" - the rest of the error was under the dropdown.

    Installing your mod to functions.include.php fixed it nicely.

     
  • mastacontrola

    mastacontrola - 2014-04-21
    • status: open --> closed
    • assigned_to: mastacontrola
    • Group: --> Unstable (example)
     
  • mastacontrola

    mastacontrola - 2014-04-21

    This should be corrected for in 0.33b, if not please use the FOG Forums and I'll do my best to figure out a method to fixing this.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks