Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › [Solved] flash graph is not working
-
[Solved] flash graph is not working
Posted by liqweed on January 10, 2010 at 22:12hi
we have just updated from cvs version to 3.0 stable (installed from .deb).
flash graphs stopped working. they display ‘agent access rate’ and few graphs but NOT ANY from agents data.
when i switch to non-flash ones it just works.
i can see graph’s source with values when i view the page source.is there any way to fix that please?
thanks for your great work!
HFalch replied 14 years, 9 months ago 5 Members · 15 Replies -
15 Replies
-
::
hi
we have just updated from cvs version to 3.0 stable (installed from .deb).
flash graphs stopped working. they display ‘agent access rate’ and few graphs but NOT ANY from agents data.
when i switch to non-flash ones it just works.
i can see graph’s source with values when i view the page source.is there any way to fix that please?
thanks for your great work!
Have you tested the demo running at farscape.artica.es ?. If this works for you its a problem in your setup, if not, is a problem in your browser.
-
::
i looked at demo (http://farscape.artica.es/pandora/) and it seem to me that flash fusion charts are disabled.
i can see graphs in images. this works at our installation too.
problem is when fusion charts try to do this job. -
-
::
thanks for turning flash graphs on.
i can see your graphs fine.there is a difference between our sources in..
{
    var myChart = new FusionCharts(“//include/FusionCharts/FCF_MSArea2D.swf”, “chart_330690064”, “555”, “245”, “0”, “1”);and
{
    var myChart = new FusionCharts(“/pandora_console/include/FusionCharts/FCF_MSArea2D.swf”, “chart_1966635550”, “555”, “245”, “0”, “1”);i have 2x // in path
my config is:Â Â Â Â Â Â Â Â Â Â $config[“homedir”]=”/var/www/pandora_console”;Â Â Â // Config homedir
          $config[“homeurl”]=”/”;    // Base URLshould this be the problem with rendering the graph?
-
-
::
If you access Pandora though http://your_server/pandora_console/index.php, then you have to set the  $config[“homeurl”] = /pandora_console (this is done in the installation process, as the script gets the URL).
If you access though http://your_server/index.php, this is probably a bug… In which pages you can’t see the flash??
-
::
yes. my install is to /
i cannot see graphs in popup window:
i can see without problems:
http://mypandoraurl/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1762
in your demo installation it works fine.
tested via latest firefox & chromium. -
-
::
Mmm, I think it’s a bug. It should be solved in one commit.
Let’s try to solve it:
Change the code in the /include/functions_fsgraph.php file, line 195, from:
var myChart = new FusionCharts(“‘ . $config[“homeurl”] . ‘/include/FusionCharts/FCF_MSArea2D.swf”,
to
var myChart = new FusionCharts(“‘ .  $pre_url . ‘/include/FusionCharts/FCF_MSArea2D.swf”,
Please, change, and try again.
Thanks.
Raul
-
-
::
My case SOLVED.
You were wright. I compared the actual version with the old one (2.1) and I discovered some difference in the configuration of the file ./include/config.php.
The configuration which does work is:
<?php
// Begin of automatic config file
$config["dbname"]="pandora";Â Â Â Â Â Â Â Â Â Â // MySQL DataBase name
$config["dbuser"]="root";Â Â Â Â Â Â Â Â Â Â Â // DB User
$config["dbpass"]="pandora";Â Â Â Â Â Â Â Â Â Â // DB Password
$config["dbhost"]="localhost";Â Â Â Â Â Â Â Â Â // DB Host
$config["homedir"]="/var/www/pandora_console";Â Â Â Â Â // Config homedir
$config["homeurl"]="/pandora_console";Â Â Â Â Â Â Â Â Â // Base URL
// End of automatic config fileI changed it, and all the graphics are working.
-
::
As I see in the picture you have sent, you have your url in /pandora_console, so you should have in your config file:
$config[“homeurl”]=”/pandora_console”;
Anyway, if you take a look at the source code of the HTML page in the graph page, and search for FusionCharts, what do you see?
By the way, I’m from Salamanca 😀
Nothing happens, the problem remains.
Thanks for your help.
This is my screen,
-
-
-
::
Mmm, I think it’s a bug. It should be solved in one commit.
Let’s try to solve it:
Change the code in the /include/functions_fsgraph.php file, line 195, from:
var myChart = new FusionCharts(“‘ .  $config[“homeurl”] . ‘/include/FusionCharts/FCF_MSArea2D.swf”,
to
var myChart = new FusionCharts(“‘ .   $pre_url . ‘/include/FusionCharts/FCF_MSArea2D.swf”,
Please, change, and try again.
Thanks.
Raul
Just wanted to throw in a +1 on this. I have also installed to the root address (http:///index.php), and had no flash graphs after installation. This little patch fixed it.