Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support No graphics on Pandora FMS 1.3.1 – Solved

  • No graphics on Pandora FMS 1.3.1 – Solved

    Posted by leandrojmp on December 5, 2008 at 14:31

    Hi everyone,

    I need some help configuring the Web Console on a Machine where i don’t have root access.

    I only have access to a filesystem called /pandora, where i installed and configured the Pandora FMS Data Server and the agents, i also installed some Perl libraries that aren’t installed, and managed to tell the pandora_server to look for these libs at the directory that i made, /pandora/lib.

    The pandora_console was installed, and the config.php file is configured. I can start the agents and i can see the values changing on the Web Console, but i have no graphics, even the progress bar don’t show.

    The pear-php is installed.

    Anyone has any idea what could cause this error and how to solve this?

    Thanks.

    manu replied 16 years, 2 months ago 4 Members · 11 Replies
  • 11 Replies
  • manu

    Member
    December 7, 2008 at 08:31
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Take a look at the variable “homedir” and “homeurl” present in pandora_console/include/config.php, what are the values?

  • leandrojmp

    Member
    December 7, 2008 at 11:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The value of $config_homedir is the directory where the pandora_console is(/webapplic/pandora_console/), and the value of $BASE_URL is the value of the url (http://pandora.XXXXXX, a Virtual Host on the intranet), i double checked that variables.

    Besides PEAR, is there any dependencies to generate graphics? Some Apache Modules, anything else that i can check in the machine to see if i have?

  • leandrojmp

    Member
    December 7, 2008 at 12:07
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I run some tests on a virtual machine.

    The variables $config_homedir and $BASE_URL, appers to affect only the texts over the graphics.

    If the file PEAR.php isn’t on the directory /usr/share/php/ or in the pandora_console/reporting/ i dind’t have any graphics besides the progress bar.

    On the machine where i have no graphics, the file PEAR.php is in the directory pandora_console/reporting and the variables $config_homedir and $BASE_URL are correctly configured, but i don’t have any graphics, not even the progress bar.

    What else i can check? I don’t have root access, if there are some dependencies missing i need to exactly what is that dependenci to ask the person who has root access to install.

  • raul

    Member
    December 7, 2008 at 14:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    To debug it, enable the PHP errors, warnings and notices and create an php.error file. You can do that in the include/config.php:

    error_reporting(E_ALL);
    ini_set(“log_errors”, 1);
    ini_set(“error_log”, “/webapplic/pandora_console/php.error”);

    Go to the page where you don’t see the graphs and after that, check /webapplic/pandora_console/php.error. This file will give you the clue to solve the issue.

    Raul

  • leandrojmp

    Member
    December 7, 2008 at 19:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks, i’ll do that this Monday.

    But, besides PEAR, is there any dependencies to generate and show the graphics? Like an Apache module or something else?

  • Sancho

    Administrator
    December 7, 2008 at 19:38
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Make sure that php-gd is installed.

  • leandrojmp

    Member
    December 8, 2008 at 08:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’m at the job now.

    php-gd is installed.

    I checked the error log file and got the message:

    [08-Dec-2008 10:58:31] PHP Fatal error: Call to undefined function ImageTTFText() in /webaplic/pandora_console/reporting/fgraph.php on line 1391

    Looking at the phpinfo() i saw that PHP don’t have support to freetype, so i asked to the admin to rebuild php with the following settings

    –enable-gd-native-ttf
    –with-ttf
    –with-freetype-dir=/usr/lib (the freetype lib director if it is another one)

    I only get this error on the log, so i think that will solve. I didn’t look to much at the code of the files, but if the problem is with the ttf support, why the graphics don’t show up without any text? just images?

    Can be anything else?

  • leandrojmp

    Member
    December 10, 2008 at 10:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Problem Solved.

    The admin rebuild PHP today with support for FreeType, now i have graphics.

    I had some problems installing and configuring Pandora FMS without no root access, and i made some documentation about how to do it. Can i post it here or in another topic? Maybe other people face the same problems with privileges that i faced.

  • manu

    Member
    December 10, 2008 at 13:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Maybe we could create a new FAQ entry, do you think it would fit there?

  • leandrojmp

    Member
    December 11, 2008 at 06:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think so.

    I’ll try to resume the documentation i had in a couple of topics.

  • manu

    Member
    December 11, 2008 at 07:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Awesome, let me know when it’s done and we’ll put it in the wiki