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 Install – Graphviz /twopi in non-standard location

  • Install – Graphviz /twopi in non-standard location

    Posted by tegulizard13 on July 16, 2009 at 15:14

    How do I get the web console to see twopi when Graphviz is not installed in the standard location?
    By default twopi is /usr/bin/twopi
    but mine is the custom path /eps/products/bin/twopi
    The result is the error (in the network map):

    Map could not be generated
    Apparently something went wrong reading the output.
    Is twopi (usually part of GraphViz) installed and able to be executed by the webserver?
    Is /eps/products/opensource/apache/apache2/htdocs/pandora/attachment writeable by the webserver?

    I’m still looking for a path I can configure somewhere, but someone else must have run into this before. Any good ideas?

    tegulizard13 replied 15 years, 7 months ago 3 Members · 6 Replies
  • 6 Replies
  • manu

    Member
    July 18, 2009 at 03:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Why don’t you link your /eps/products/bin/twopi to /usr/bin/twopi ?

  • tegulizard13

    Member
    July 20, 2009 at 08:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I only have write permissions within most of the /eps/ directory structure. Aliasing twopi also does not work.

  • tegulizard13

    Member
    July 20, 2009 at 13:13
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Also, this is the same for the other graph plugins circo, dot, neato, and fdp

  • raul

    Member
    July 21, 2009 at 12:07
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    In the installation, there is a check if /usr/bin/twopi exists.

    You can edit the installation.php file and change this check.

    In the operation/agentes/networkmap.php file, that binary is called.. maybe you can add /eps/products/bin/ to your PATH and try?

    Regards,

  • tegulizard13

    Member
    July 21, 2009 at 12:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I changed the check in installation.php, which is how I got it to install in the first place.
    /eps/products/bin is in my path, but it doesn’t seem to help.
    I just recently found the file networkmap.php, and it seems to generate the code for the image correctly (stored in $cmd), but then fails to create the .map file, which causes my error to be generated.

  • tegulizard13

    Member
    July 22, 2009 at 16:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I fixed it!
    Around line 230 in networkmap.php there is a switch statement which returns the commands such as dot, twopi, circo, neato, and fdp based upon the network map type chosen. Here I was able to specify the paths to my local commands.

    Thanks for all your help!