Difference between revisions of "GLPI"

From Amahi Wiki
Jump to: navigation, search
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[category:apps]]
 
[[category:apps]]
<b>NOTE:</b>  This is for Amahi on Fedora.  Ubuntu has not been tested.  Anyone wanting to try it, please make notes here for the Amahi community.  Thanks.
+
<b>NOTE:</b>  This is for Amahi 7 on Fedora 19.  Ubuntu has not been tested.  Anyone wanting to try it, please make notes here for the Amahi community.  Thanks.
  
 
=== Installing GLPI on Amahi ===
 
=== Installing GLPI on Amahi ===
Line 11: Line 11:
  
 
Prerequisites <br />
 
Prerequisites <br />
First, install the "php-xmlrp" and "php-soap" in Fedora.  (You may need to run these commands in Terminal as a superuser:)
 
{{Code|yum install php-soap php-xmlrpc}}
 
  
Downloaded the packages for Webservices and then Fusioninventory
+
Downloaded the packages Fusioninventory [http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/files Fusioninventory]
* https://forge.indepnet.net/projects/webservices/files
 
* http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/files
 
  
  
 
<b>NOTE:</b> Be sure to choose plugin versions that are compatible with your version of GLPI.
 
<b>NOTE:</b> Be sure to choose plugin versions that are compatible with your version of GLPI.
 +
 +
<b>NOTE:</b> Fusionintentory for GLPI 0.83.* or lower will need dependencies php-soap, php-xmlrpc and Webservices and the four separate packages for Fusioninventory are in the "metapackages" download for your version of GLPI.  Fusioninventory will have four separate plugins to install and activate. GLPI version 0.84.* does not need php-soap, php-xmlrpc or Webservices.  There is only one package for Fusioninventory which contains everything you need.
  
 
Unpack them into the <i>/var/hda/web-apps/glpi/html/plugins</i> directory. (Be sure to read the directions for each of the plugins. Some directories in the plugins require full read/write access for the installation of the plugin.)
 
Unpack them into the <i>/var/hda/web-apps/glpi/html/plugins</i> directory. (Be sure to read the directions for each of the plugins. Some directories in the plugins require full read/write access for the installation of the plugin.)
Line 26: Line 24:
  
 
=== Login Credentials: ===
 
=== Login Credentials: ===
'''''User name''''':  glpi<br />
+
Make use to change the default password to protect your local system.
'''''Password''''': glpi
+
 
 +
===Installing and Enabling Fusioninventory===
 +
<u>Moving the Fusioninventory Directory</u><br />
 +
Extract the Fusioninventory for GLPI directory. Be sure the individual files stay in the Fusioninventory folder.  Copy the entire folder into the GLPI Plugins directory
 +
<code>cp -R whereever-you-extrated-file/fusioninventory /var/hda/web-apps/glpi/html/plugins
  
Make use to change this password to protect your local system.
 
  
 
<u>Installing the Plugins</u><br />
 
<u>Installing the Plugins</u><br />
 
Within GLPI, go to "Setup > Plugins."<br />
 
Within GLPI, go to "Setup > Plugins."<br />
In the table that presents itself you should see Webservices and four other plugins associated with Fusioninventory.  To install, update or enable any plugin, one clicks on "install," "update," or "enable" in the table across from the plugin you want to activate in GLPI.   
+
In the table that presents itself you should see the Fusioninventory plugin.  To install, update or enable any plugin, one clicks on "install," "update," or "enable" in the table across from the plugin you want to activate in GLPI.  The last step is to "enable" the plugin.  Until this is done the plugin is not available.  Once this is done, you will see Fusioninventory listed on the GLPI menu under "Plugins."
 +
 
  
<u>Webservices First</u><br />
 
I had to install and/or update and enable the Webservices plugin first. I don't know if it was a coincidence or not, but things started working after I did clean install of the Fusioninventory plugin after installing Webservices.
 
  
<u>Fusioninventory Plugins</u><br />
 
Next, install the Fusioninventory plugin parts.  There are four different component that have to be installed in a certain order. (GLPI will not let you install or update/enable other parts until prerequisites are in place. Just follow it intuitively.)
 
  
 
<u>The All-Important URL</u><br />
 
<u>The All-Important URL</u><br />
Go to <i>Plugins > Fusioninventory > Setup</i> in the GLPI menu and put the long url address for an Amahi app with the direcory additions needed.  See the example below:
+
Go to <i>Plugins > Fusioninventory > Setup</i> in the GLPI menu and put the long url address for an Amahi app with the directory additions needed.  See the example below:
  
   http://glpi.AAAA.com/plugins/fusioninventory/ ("AAAA" being the local domain.)
+
   <nowiki>http://glpi.AAAA.com/</nowiki> ("AAAA" being the local domain.)
  
 
<u>Connecting to the Agents</u><br />
 
<u>Connecting to the Agents</u><br />
The same exact url in the <i>Plugins/Fusioninventory/General Settings</i> menu has to be in each agent, the agent you install on your server and then on each device.  I just pulled up GLPI's web console and copied/pasted the url from the screen.  Then I knew what the agent and the server had were identical. I had the agent do a "force inventory" and its information showed up in the <i>Inventory > Computers</i> screen of GLPI.  
+
A different url goes in each agent.
 +
 
 +
  <nowiki>http://glpi.AAAA.com/plugins/fusioninventory/front/plugin_fusioninventory.communication.php</nowiki> ("AAAA" being the local domain.)
 +
I had the agent do a "force inventory" and its information showed up in the <i>Inventory > Computers</i> screen of GLPI. To do a "force inventory" on a client computer, go to <b><u><nowiki>http://localhost:62354</nowiki></u></b> and click on the "force inventory" link.
  
 
Done.
 
Done.

Latest revision as of 16:58, 2 February 2015

NOTE: This is for Amahi 7 on Fedora 19. Ubuntu has not been tested. Anyone wanting to try it, please make notes here for the Amahi community. Thanks.

Installing GLPI on Amahi

Amahi has an app to install GLPI on your server. You can login to your Amahi Dashboard and choose it from the list of Apps.

See GLPI for more details

Fusioninventory Plugin for GLPI

Prerequisites

Downloaded the packages Fusioninventory Fusioninventory


NOTE: Be sure to choose plugin versions that are compatible with your version of GLPI.

NOTE: Fusionintentory for GLPI 0.83.* or lower will need dependencies php-soap, php-xmlrpc and Webservices and the four separate packages for Fusioninventory are in the "metapackages" download for your version of GLPI. Fusioninventory will have four separate plugins to install and activate. GLPI version 0.84.* does not need php-soap, php-xmlrpc or Webservices. There is only one package for Fusioninventory which contains everything you need.

Unpack them into the /var/hda/web-apps/glpi/html/plugins directory. (Be sure to read the directions for each of the plugins. Some directories in the plugins require full read/write access for the installation of the plugin.)

Log into GLPI with the GLPI root user

Login Credentials:

Make use to change the default password to protect your local system.

Installing and Enabling Fusioninventory

Moving the Fusioninventory Directory
Extract the Fusioninventory for GLPI directory. Be sure the individual files stay in the Fusioninventory folder. Copy the entire folder into the GLPI Plugins directory cp -R whereever-you-extrated-file/fusioninventory /var/hda/web-apps/glpi/html/plugins


Installing the Plugins
Within GLPI, go to "Setup > Plugins."
In the table that presents itself you should see the Fusioninventory plugin. To install, update or enable any plugin, one clicks on "install," "update," or "enable" in the table across from the plugin you want to activate in GLPI. The last step is to "enable" the plugin. Until this is done the plugin is not available. Once this is done, you will see Fusioninventory listed on the GLPI menu under "Plugins."



The All-Important URL
Go to Plugins > Fusioninventory > Setup in the GLPI menu and put the long url address for an Amahi app with the directory additions needed. See the example below:

 http://glpi.AAAA.com/ ("AAAA" being the local domain.)

Connecting to the Agents
A different url goes in each agent.

 http://glpi.AAAA.com/plugins/fusioninventory/front/plugin_fusioninventory.communication.php ("AAAA" being the local domain.)

I had the agent do a "force inventory" and its information showed up in the Inventory > Computers screen of GLPI. To do a "force inventory" on a client computer, go to http://localhost:62354 and click on the "force inventory" link.

Done.