A_Hull wrote:
You do need to set the correct paths in include_inkscake_config.php and include_dia_config.php to point to a copy of the images. This is one of the things I was thinking of improving.
Hello A_Hull, had postponed trying that until now because I've been doing some other things. I think I might need some more help because that didn't work for me.
First I modified the include_dia_config.php file on the OA server with the following line:
$dia_image_folder='\\home\\[myusernamehere]\\openaudit\\images\\';
I'm running Ubuntu on my workstation. Created the folder openaudit/images under my ~ folder in my workstation, then I copied all of the images in /var/www/openaudit/images of the OA server into that folder, as indicated by the include_dia_config.php file. That was supposed to be it, at least from what the php file says.
Then I tried creating the Dia diagram from the All systems audited report page (tried with both Chrome and Firefox), and I saved the dia file onto my local openaudit/images folder. I still get exactly the same result: the report shows almost 100 systems, but I'm getting an empty diagram.
In case it might help, the dia file I download from the browser(s) is just 2172 bytes long, and cat-ing it yields the following:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
<dia:diagramdata>
<dia:attribute name="Background">
<dia:color val="#FFFFFF"/>
</dia:attribute>
<dia:attribute name="pagebreak">
<dia:color val="#000099"/>
</dia:attribute>
<dia:attribute name="paper">
<dia:composite type="paper">
<dia:attribute name="name">
<dia:string>#A4#</dia:string>
</dia:attribute>
<dia:attribute name="tmargin">
<dia:real val="2.8"/>
</dia:attribute>
<dia:attribute name="bmargin">
<dia:real val="2.8"/>
</dia:attribute>
<dia:attribute name="lmargin">
<dia:real val="2.8"/>
</dia:attribute>
<dia:attribute name="rmargin">
<dia:real val="2.8"/>
</dia:attribute>
<dia:attribute name="is_portrait">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="scaling">
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="fitto">
<dia:boolean val="false"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="grid">
<dia:composite type="grid">
<dia:attribute name="width_x">
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="width_y">
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="visible_x">
<dia:int val="1"/>
</dia:attribute>
<dia:attribute name="visible_y">
<dia:int val="1"/>
</dia:attribute>
<dia:composite type="color"/>
</dia:composite>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#D8E5E5"/>
</dia:attribute>
<dia:attribute name="guides">
<dia:composite type="guides">
<dia:attribute name="hguides"/>
<dia:attribute name="vguides"/>
</dia:composite>
</dia:attribute>
</dia:diagramdata>
<dia:layer name="Background" visible="true">
</dia:layer>
</dia:diagram>
Anything else I might need to modify on the server to get the dia diagram created properly? (By the way, I can perfectly export the report to .CSV)