Statistics URL is correct, but load statistics screen does not show the image.

43 views
Skip to first unread message

Srini

unread,
Mar 13, 2012, 3:35:00 AM3/13/12
to scalr-...@googlegroups.com
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

Nick Toursky

unread,
Mar 14, 2012, 1:57:39 PM3/14/12
to scalr-...@googlegroups.com
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.

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 scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Srinivasan S

unread,
Mar 14, 2012, 2:01:27 PM3/14/12
to scalr-...@googlegroups.com
How does the graphics url and the folder relate?

I have grahics folder under www and the url pointing to http://scalr.domain.com/graphics/ is that fine?

The call to statistics.php is happening. The image is also created. However the js for displaying is not doing so and instead displaying the url in red.

Any suggestions on what the folder should be and what the uel should be in coire settings?

Srini
Sent on my BlackBerry® from Vodafone

From: Nick Toursky <hin...@gmail.com>
Date: Wed, 14 Mar 2012 19:57:39 +0200
Subject: Re: Statistics URL is correct, but load statistics screen does not show the image.

Srini

unread,
Mar 16, 2012, 1:14:30 AM3/16/12
to scalr-...@googlegroups.com
Hi Nick

No errors in the log or in the scripts.

My core settings:

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 scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discuss+unsubscribe@googlegroups.com.

Srinivasan S

unread,
Mar 20, 2012, 9:08:39 AM3/20/12
to Juan Granados, scalr-...@googlegroups.com
No. Still looking for a soln.

Saviors at Scalr, any help please :)

Srini
------Original Message------
From: Juan Granados
To: Srini
Subject: Re: Statistics URL is correct, but load statistics screen does not show the image.
Sent: Mar 20, 2012 6:22 PM

Did you ever get this fixed? I have the same issue.

On Mar 13, 3:35 am, Srini <srinivasan.subraman...@gmail.com> 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

Juan Granados

unread,
Mar 20, 2012, 8:50:50 AM3/20/12
to scalr-discuss
I have the same problem. Did you ever get a fix for this issue?

Srini

unread,
Mar 23, 2012, 5:21:00 AM3/23/12
to scalr-...@googlegroups.com
Hello Scalr Team

Any possibility that someone can help us on this?

Cheers
Srini

Srinivasan Subramanian

unread,
Mar 26, 2012, 10:07:22 AM3/26/12
to scalr-...@googlegroups.com
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
Subject: Re: Statistics URL is correct, but load statistics screen does not show the image.
 
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 scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.

Juan Granados

unread,
Mar 26, 2012, 10:26:30 AM3/26/12
to scalr-...@googlegroups.com
Can send me the changes so I can try as well. Thanks.

Juan

Srinivasan Subramanian

unread,
Mar 26, 2012, 11:47:39 PM3/26/12
to scalr-...@googlegroups.com
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>');
                                        }
                                }
                        });
Juan

To unsubscribe from this group, send email to mailto:scalr-discuss%2Bunsu...@googlegroups.com.

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 scalr-...@googlegroups.com.
To unsubscribe from this group, send email to mailto:scalr-discuss%2Bunsu...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.
Reply all
Reply to author
Forward
0 new messages