GLPI + Fusion Inventory

I needed to collect Old about the configuration of computers in the production network. GLPI was chosen as the base. Because OCS Inventory was already described on a hub and in comments to that article it was mentioned about Fusion Inventroy, then we will install it.
Main goals:
  1. Screw Fusion Inventory to GLPI, without using OCS Inventory
  2. start the information collection script manually, if necessary (so that nothing superfluous hangs in the memory);
  3. to collect the configuration of computers controlling industrial equipment (they are not connected to the network);

The server should already have LAMP installed and configured (in my case, this is FAMP).

Install GLPI

# cd /usr/ports/www/glpi; make install clean

Create the database and user (replace USER and PASSWORD with your own):

# mysqladmin -uroot -p create glpi 
# mysql -uroot -p -e"GRANT ALL ON glpi.* TO USERNAME@localhost IDENTIFIED BY 'PASSWORD'" glpi

Add to the Apache settings (httpd.conf or httpd-vhosts.conf):

Alias /glpi "/usr/local/www/glpi"

	 AllowOverride Options FileInfo

Reboot Apache:
# apachectl restart

We go to the created site (http: // {host.domain} / glpi /) and select the installation language Russian, and then everything is clear there.

Install FusionInventory (server)

Download the FusionInventory plugin and unpack it into the GLPI plugins folder:

# cd ~
# fetch
# cd /usr/local/www/glpi/plugins/
# rm remove.txt
# tar -xzvf /root/fusioninventory-for-glpi-2.2.2-release.tar.gz

We check the folder structure, it should look like this:

        |--- glpi
              |--- plugins
                    |--- fusioninventory
                          |--- fusioninventory
                          |     |--- index.php
                          |     |--- hook.php
                          |     |--- front
                          |     |--- inc
                          |--- fusininventory
                          |     |--- ...
                          |--- fusinvsnmp
                          |--- ...

We go into GLPI under the admin account, the menu "settings" -> "add-ons" -> in the field "FusionInventory" -> "update / install" -> "enable". “Install”, and then turn on all parts of the plugin in this order:
  1. Fusioninventory
  2. FusionInventory INVENTORY
  3. FusionInventory SNMP

Install FusionInventory (client)

Download and install the client:
When installing, specify the path to the server (for Win version settings are set during installation):


If DNS is used, then:


For Active Directory:


You may have to specify additional settings (proxy, etc) - the “Advanced” checkbox during installation.
After installing the client, go to the GLPI web interface -> "Add-ons" -> "FusionInventory" -> "Agent Management" and see if the computer appears in the list.
To prevent the agent from constantly hanging in memory, after installation:


  1. Copy the folder of the installed Fusion-Inventory
  2. In it, create a save_net.cmd file with the following contents:

set PATH=%CD%\perl\;%CD%\perl\bin;%PATH%
perl.exe %CD%\perl\bin\fusioninventory-agent --debug -f --no-wakeonlan --scan-homedirs --logfile=%CD%agent-log.txt --share-dir=%CD%share —server=http://glpi.mydomain/plugins/fusioninventory/front/plugin_fusioninventory.communication.php

Do not forget to change "glpi.mydomain" to your name / ip.
To inventory / update, run the created script, and to save the computer configuration (on which there is no network) to a file, create the “xml” directory in the folder with Fusion-Inventory and save_local.cmd with the following contents:

set PATH=%CD%\perl\;%CD%\perl\bin;%PATH%
perl.exe %CD%\perl\bin\fusioninventory-agent --debug -f --no-wakeonlan --scan-homedirs --local=%CD%\xml --logfile=%CD%\agent-log.txt --share-dir=%CD%\share

After running this script, the configuration will be saved in the “xml” directory. To import the configuration into the database - go to glpi -> "Add-ons" -> "FusionInventory" -> "Import agent XML file" and select the desired file from the xml folder.
As a result, we get a portable version of Fusion Inventory, which can be run from a flash drive. The main thing is to be sure that no one has any living creatures on the computer.

FreeBSD / Linux

PS If you remove the equipment / computer / etc from the list, and then send the agent information on it to the server, then it does not appear in the corresponding list - you need to cancel the deletion ("Show deleted objects" -> "Restore")

Also popular now: