En faq » History » Version 1

tsmr, 08/09/2009 11:39 PM

1 1 tsmr
======= Archires Plugin FAQ =======
2 1 tsmr
3 1 tsmr
===== Tips =====
4 1 tsmr
5 1 tsmr
==== All the computers are graphed on a same line whether above or under the switch to which they are connected, how do I change that?   ====
6 1 tsmr
7 1 tsmr
> To be able to graph computers above and under the switch, connect half of the computers from the switch to the computers (they will appear under the switch) then connect the other half from the computer to the switch (they will appear above the switch). 
8 1 tsmr
9 1 tsmr
==== How to add a type of item and its corresponding image? ====
10 1 tsmr
11 1 tsmr
> In version 1.3, it has been automated.
12 1 tsmr
13 1 tsmr
> In version 1.2, you have to:
14 1 tsmr
15 1 tsmr
=== First you have to know the type you want to add. ===
16 1 tsmr
17 1 tsmr
In glpi_type_computers, locate the ID to be added. For example (ID 3 = Rack).
18 1 tsmr
19 1 tsmr
=== Then add an entry in the glpi_plugin_archires_config table ===
20 1 tsmr
21 1 tsmr
Corresponding fields :
22 1 tsmr
  *type glpi_plugin_archires_config = ID form the type of glpi_type_computers
23 1 tsmr
  *device_type glpi_plugin_archires_config = ID correspond to the ID declared in config.php (Section // ITEMS TYPE)
24 1 tsmr
  *img = the name of your image (that you will have added before in the plugin pics folder)
25 1 tsmr
26 1 tsmr
The image will be automatically added to the configuration of the plugin and visible on the graph.
27 1 tsmr
28 1 tsmr
===== Questions/Answers =====
29 1 tsmr
30 1 tsmr
=== Q: In debug mode, I have lines of the following type ''PHP ERROR : Notice: Undefined index: 6 in plugin_archires.functions_display.php on line 419''. In addition my image does not show up.===
31 1 tsmr
32 1 tsmr
> R : You may have a path problem that prohibits archires/inc/plugin_archires.functions_display.php to find the dot utility. You can define a hard link in this script (usr/local/bin/dot for example). You can detect if this is happening looking for "sh: dot: not found" in apache's log. (This problem is corrected in Version 1.3)
33 1 tsmr
34 1 tsmr
35 1 tsmr
=== Q: My image contains weird sized items (the shape of a rhombus). ===
36 1 tsmr
37 1 tsmr
> R: The name or type of the concerned item cannot include any character other than basic ones ( none of those "&", "/", "'", etc...)