En faq » History » Version 2

tsmr, 08/10/2009 12:32 PM

1 2 tsmr
{{toc}}
2 1 tsmr
3 2 tsmr
h2. Archires Plugin FAQ
4 1 tsmr
5 2 tsmr
h3. 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 2 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 2 tsmr
h3. How to add a type of item and its corresponding image?
10 1 tsmr
11 2 tsmr
* In version 1.3, it has been automated.
12 1 tsmr
13 2 tsmr
* In version 1.2, you have to:
14 2 tsmr
> * First you have to know the type you want to add.
15 1 tsmr
In glpi_type_computers, locate the ID to be added. For example (ID 3 = Rack).
16 2 tsmr
> * Then add an entry in the glpi_plugin_archires_config table
17 1 tsmr
Corresponding fields :
18 2 tsmr
> > * type glpi_plugin_archires_config = ID form the type of glpi_type_computers
19 2 tsmr
> > * device_type glpi_plugin_archires_config = ID correspond to the ID declared in config.php (Section // ITEMS TYPE)
20 2 tsmr
> > * img = the name of your image (that you will have added before in the plugin pics folder)
21 1 tsmr
22 1 tsmr
The image will be automatically added to the configuration of the plugin and visible on the graph.
23 1 tsmr
24 2 tsmr
h3. Questions/Answers
25 1 tsmr
26 2 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.===
27 2 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)
28 1 tsmr
29 1 tsmr
30 2 tsmr
* Q: My image contains weird sized items (the shape of a rhombus). ===
31 2 tsmr
> * R: The name or type of the concerned item cannot include any character other than basic ones ( none of those "&", "/", "'", etc...)