Its very simple:  Find the function fillStatistics in the file 
app/www/ui/js/ui/monitoring/view.js

Below the snippet:

failure: function(data, response, options) {
                                        if(panel.down('#' + watchername + farm 
+ role)){
                                                addDockMenu(farm, watchername, 
type, role);
<!— Commented out to avoid file name display in red font -->
                <!--                            panel.down('#' + watchername + 
farm + role).body.update('<div style="position: relative; top: 48%; text-align: 
center; width: 100%; height: 50%;"><font color = "red">' + data.msg + 
'</font></div>'); –>
panel.down('#' + watchername + farm + role).body.update('<div style="position: 
relative; text-align: center; width: 100%; height: 50%;"><img src = "' + 
data.msg + '"/></div>');
                                        }
                                }
                        });

From: Juan Granados 
Sent: Monday, March 26, 2012 7:56 PM
To: [email protected] 
Subject: Re: Statistics URL is correct, but load statistics screen does not 
show the image.

Can send me the changes so I can try as well. Thanks. 

Juan


On Mon, Mar 26, 2012 at 10:07 AM, Srinivasan Subramanian 
<[email protected]> wrote:

  Hi Nick and Scalr team

  Some strange findings:

  1.  I debugged the statistics.php file and found no errors.  All calls to it 
were successful.
  2.  I then modified the ui/js/ui/monitoring/view.js file.  In the function 
fillStatistics(), I made a small change.  In the failure part also I printed 
out the img tag instead of the URL in red font as is in scalr default.  Voila, 
the images showed up without any issue.

  Looks like although statistics.php is returning the correct json in the 
stream, the function fillStatistics() is treating it as an error.  Any ideas 
what could be wrong ?  something to do with Ajax ?

  Cheers
  Srini

  From: Srini 
  Sent: Friday, March 16, 2012 10:44 AM
  To: [email protected] 
  Subject: Re: Statistics URL is correct, but load statistics screen does not 
show the image.

  Hi Nick 

  No errors in the log or in the scripts.

  See this screenshot for how it looks:  
http://dl.dropbox.com/u/16724656/Screenshots/screenshot_1.png

  My core settings:

  Statistics URL; https://scalr.domain.com/graphics/%fid%/%rn%_%wn%.
  Path to graphics: /var/www/html/app/www/graphics

  If I directly access the URL:  
https://scalr.domain.com/graphics/%fid%/%rn%_%wn%.  in the browser then the 
image is shown.  But the load statistics page is not able to show it.

  Any ideas?

  Srini

  On Wednesday, March 14, 2012 11:27:39 PM UTC+5:30, Nick Toursky wrote: 
    Check web servers log to see, if the request is being made at all. If it is 
not, check browser's developer console to see, where does it try to get the 
image from.


    On Tue, Mar 13, 2012 at 09:35, Srini wrote:

      When I go to the load statistics page, the 4 tabs show the URL.  When I 
copy the URL displayed in the browser then the image is displayed. 

      Any ideas on how this can be resolved?

      Regards
      Srini
      -- 
      You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.

      To view this discussion on the web visit 
https://groups.google.com/d/msg/scalr-discuss/-/t59Cjdbt6X0J. 

      To post to this group, send email to [email protected].
      To unsubscribe from this group, send email to 
[email protected].
      For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en.



  -- 
  You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.

  To view this discussion on the web visit 
https://groups.google.com/d/msg/scalr-discuss/-/0gNpq6en7-cJ. 

  To post to this group, send email to [email protected].
  To unsubscribe from this group, send email to 
mailto:scalr-discuss%[email protected].
  For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en.

  -- 
  You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.

  To post to this group, send email to [email protected].
  To unsubscribe from this group, send email to 
mailto:scalr-discuss%[email protected].
  For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/scalr-discuss?hl=en.

Reply via email to