You are not logged in.
Pages: 1
Topic closed
Hi everyone
I've installed the archires plugin & graphviz, but when I go to the test page I don't get an image, and when I click on 'generation' I don't get an image either.
I checked the permissions, and run the following from the shell
cat graph
graph G {
a;
b;
c -- d;
a -- c;}
test:glpi mcadmin$ sudo -u _www dot -T png -o temp_name graph
Which creates the file without a problem, so it seems that graphviz is working, and the permissions are fine.
I've followed the utilisation on the wiki, and setup a view and a network location without a problem, and everything looks ok.
On the test page and when I click generation I get a blue icon with a question mark.
Clicking on SVG creates a blank document
GLPI Version: 0.72.4
OS: Apple OSX-Server 10.6.4
Apache 2
Archires Version: 1.7.3
Browsers used: Safari 5.0.1 and FIrefox 3.6.3
Many thanks
David
Offline
On the test page and when I click generation I get a blue icon with a question mark.
On the test page, do you see the graphviz test ?
Xavier Caillaud
Blog GLPI Infotel
Offline
I presume you mean when I click on the test tab within the network architecture setting.
I see a table at the bottom which has the heading 'Test Graphviz' and that contains the blue icon with the question mark, ie the standard image not found icon.
Offline
So the graphiz isn't available for plugin
Xavier Caillaud
Blog GLPI Infotel
Offline
OK, I understand that.
When I run the dot command above as the apache user, it works without a problem. So I'm confused as to why it can't find graphviz.
Any ideas? I've followed the installation & utilisation guides, but maybe I've missed something obvious.
Offline
I don't have Apple OSX-Server..So it's not easy to help you. No problem on debian / Centos / red hat.
Xavier Caillaud
Blog GLPI Infotel
Offline
I understand, OSX Server can be fun at times
I presume that the plugin is looking for graphviz via the standard shell path, ie it isn't specifying an absolute path such as /usr/local ?
Offline
ahhh, I've checked the obvious, and it seems like it is a path problem.
Apache's error log lists
"sh: dot: command not found"
Which would seem to be the problem, however when I run dot from the shell with the apache user it finds it.
It's definitely a path error, where does the plugin expect it to be?
on osx it's installed to
/usr/local/bin
and my path is set to
echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Offline
Xavier Caillaud
Blog GLPI Infotel
Offline
Thanks
I've modified that line to change $engine to
$engine="/usr/local/bin/dot";
Now I see the test graphic, but I don't get an image when clicking on 'generation'
Any idea where the setting for that is?
THe $PATH environment variable contains the path to dot.
Offline
have you define connections into GLPI ? a network element connecte to a notebook for example ?
Xavier Caillaud
Blog GLPI Infotel
Offline
I've created a test network with connections.
When I click on test, it shows this:
Graphviz links IP material 1 Socket material 1 Associated image Socket material 2 IP material 2
2_2_Main Switch -- 1_1_Test Mac Mini 01 - Socket 1
Ethernet 0 - Socket 0 192.168.0.4
Which I presume means that it is seeing the connection.
(BTW, thanks for all your help with this !)
Last edited by davidwhite (2010-08-31 12:22:21)
Offline
You have change the plugin_archires_test_Graphviz function but have you do the same modifications on :
plugin_archires_generate_Graphviz function into inc/plugin_archires.prototype.function.php
Xavier Caillaud
Blog GLPI Infotel
Offline
Thank You, Thank You, Thank You, Thank You
Problem solved !
Offline
I add this thread into plugin wiki
Xavier Caillaud
Blog GLPI Infotel
Offline
Pages: 1
Topic closed