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 Problem viewing images

  • Problem viewing images

    Posted by kram on May 15, 2007 at 23:43

    Hi,
    when I login to the webconsole and view the details off my agent, I find several images missing. I also get the page not found error when I click the graph for each of the modules in my agent.
    I have already extracted the jpgraph files onto my /usr/local/bin/ directory and also copied the fgraph.php and stat_win.php files to the ./htdocs/pandora_console/reporting/jpgraph/ directory. Is there some more settings I have to change or look at?

    Thanks in advance!
    Kripa

    manu replied 17 years, 9 months ago 4 Members · 10 Replies
  • 10 Replies
  • kram

    Member
    May 16, 2007 at 00:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Going through the installation document, I figured out that I had to actually copy all the .php files from the pgragh’s tar file into the /reporting/jpgraph folder(do correct me if I am wrong).

    But when I try to open the graph in my agent, I still get a image with red cross:(

    Any help will be appreciated.

  • Sancho

    Administrator
    May 16, 2007 at 03:25
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Going through the installation document, I figured out that I had to actually copy all the .php files from the pgragh’s tar file into the /reporting/jpgraph folder(do correct me if I am wrong).

    But when I try to open the graph in my agent, I still get a image with red cross:(

    Any help will be appreciated.

    Two suggestions:

    a) Review permissions and ownership of jpgraph files under /reporting/jpgraph

    b) Check it syslog/php errors.

  • kram

    Member
    May 16, 2007 at 17:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I checked the perms for the .php files. They seem fine.
    I went through the error_log of the apache, it has recorded error saying “File does not exist” for the files op.css, calendar.css, link.css, tip.css. Looks like the stat_win.php is looking for these files inside the repoting directory. But they dont exist there! any idea where I can find them?

    Thanks in advance!

  • raul

    Member
    May 16, 2007 at 21:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I checked the perms for the .php files. They seem fine.
    I went through the error_log of the apache, it has recorded error saying “File does not exist” for the files op.css, calendar.css, link.css, tip.css. Looks like the stat_win.php is looking for these files inside the repoting directory. But they dont exist there! any idea where I can find them?

    Thanks in advance!

    Which version are you using?

    That files are located at /[pandora_dir]/include/styles, and aren’t used by jpgraph.

    Other thing is, reviw that you have downloaded the correct jpgraph version for your PHP version (there are one for PHP5 and other for PHP4).

    If using v.1.2 of Pandora FMS, you have to untar and ungzip the files and copy the jpgraph/src folder into reporting/jpgraph folder. Check that the Apache user can view that files.

    Raul

  • kram

    Member
    May 16, 2007 at 22:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Raul,
    I am using v 1.2 Pandora FMS.

    I found the .css files in the styles directory. But, I get the “file does not exist” error in my error_log file of the apache, until I copy the .css files onto reporting directory. But, even after I do tat, I still get a red cross when I try opening the graph.

    I have downloaded jpgraph v 2.2(for PHP5). I untarred and gunziped the file and copied the contents of the jpgraph/src folder to /reporting/jpgraph folder. I also changed the permissions of these files to the user ‘pandora’. I also tried viewing these php files through the webconsole, but they report a prasing error:
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /usr/local/apache2/htdocs/pandora_console/reporting/jpgraph/jpgraph_pie.php on line 25

    Pls help. thanks in advance.

  • raul

    Member
    May 17, 2007 at 13:08
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Have you enabled the gd module in PHP?

    In you php.ini look for the string extension=gd.so, to know if it’s enabled.

  • kram

    Member
    May 18, 2007 at 23:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    php.ini doesnt even exist:(
    what do I do?

  • raul

    Member
    May 21, 2007 at 12:30
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    php.ini doesnt even exist:(
    what do I do?

    😐

    [code:1]find / -name php.ini

    The directory where you can find it depends on your Linux.

    Raul

  • kram

    Member
    May 21, 2007 at 18:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I found a file named “php.ini-recommended”. I renamed it into “php.ini”.
    Since I didnt find the line called ‘extension = gd.so’, I added that line under the directive

    . I restarted the apache server. But still, when I I click on the gragh icon, I get a red cross:(.
    Did I do anything wrong? Cant I safely assume the gd module is enabled?
    Please help.
  • manu

    Member
    May 22, 2007 at 01:58
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to download the php-gd module, I suppose there’s a package in your distribution reposistories, for sure