GLPI: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 8: Line 8:
glpi-ocsinventoryng-1.2.1.tar.gz
glpi-ocsinventoryng-1.2.1.tar.gz


archires-2.1.0.tar.gz (get it from https://forge.glpi-project.org/tarballs-plugins/) / Network Architectures
archires / Network Architectures (note version <9.2)


fusioninventory-for-glpi_0.90.1.3.tar.gz
fusioninventory-for-glpi_0.90.1.3.tar.gz


glpi-addressing-2.3.0.tar.gz
glpi-addressing (version <9.2)


GLPI-dashboard_plugin-0.7.3.tar.gz
GLPI-dashboard_plugin-0.7.3.tar.gz
Line 19: Line 19:


glpi-reports-1.9.1.tar.gz
glpi-reports-1.9.1.tar.gz
mreporting
pdf (version <9.2)


unzip them and copy them to /var/www/glpi/plugins/  
unzip them and copy them to /var/www/glpi/plugins/  
Line 25: Line 29:


In order to install them you must chown www-data /var/www/glpi/plugins/
In order to install them you must chown www-data /var/www/glpi/plugins/
If you get version problems, you can have a look in setup.php for the GLPI_VERSION string to see if you can play with that


= Setting up for OCS Inventory sync =
= Setting up for OCS Inventory sync =
Line 30: Line 36:
# In Setup -> Plugins click on the name (OSCInventory NG) and then on the + next to the breadcrumbs
# In Setup -> Plugins click on the name (OSCInventory NG) and then on the + next to the breadcrumbs
# Then under Tools -> OCSInventory NG you can test the configuration and configure the sync. You will have to still import by hand from here before the auto sync will run.
# Then under Tools -> OCSInventory NG you can test the configuration and configure the sync. You will have to still import by hand from here before the auto sync will run.
# Tools -> OCSInventory NG -> Configuration of server: Import options, fill in Web address of the OCSNG console, set Number of items to synchronize via the automatic OCSNG action to 100, change the rest to global import, set Use OCS dictionnary = no
# Setup -> Automatic Actions -> ocsng -> set status to Scheduled, run mode to CLI, edit /etc/cron.d/glpi -> execute for test, check logs every so often
# Under Assets I change the view to add OCSinventory tag, IP, MAC and put them at the top of the list.
# Under Assets I change the view to add OCSinventory tag, IP, MAC and put them at the top of the list.
This only works if you are clicking on the site. In order to have a proper scheduled run you need to put the following /etc/cron.d/glpi:
<pre>
*/5 * * * * www-data /usr/bin/php5 /var/www/glpi/front/cron.php &>/dev/null
</pre>
[http://wiki.glpi-project.org/doku.php?id=en:config:crontab]


== old ==
== old ==
Line 36: Line 49:
# Setup -> OCSNG mode -> click on the servername to edit it. fill in the options and select what you want to import
# Setup -> OCSNG mode -> click on the servername to edit it. fill in the options and select what you want to import
# Tools -> OSCNG -> select the type of import.
# Tools -> OSCNG -> select the type of import.
# Tools -> OCSInventory NG -> Configuration of server: Import options, fill in Web address of the OCSNG console, set Number of items to synchronize via the automatic OCSNG action to 100, change the rest to global import
# Setup -> Automatic Actions -> ocsng -> set status to Scheduled -> execute for test, check logs every so often

Latest revision as of 07:49, 28 September 2017

GLPI is an inventory system that takes information from OCSInventory and from fusioninventory but also allows you to insert items manually. This is important because OCSInventory only takes information from it's agents.

The files/ and plugins/ directories must be chown by www-data

Plugins

You need to use the following plugins:

glpi-ocsinventoryng-1.2.1.tar.gz

archires / Network Architectures (note version <9.2)

fusioninventory-for-glpi_0.90.1.3.tar.gz

glpi-addressing (version <9.2)

GLPI-dashboard_plugin-0.7.3.tar.gz

glpi-massocsimport-1.6.1.tar.gz

glpi-reports-1.9.1.tar.gz

mreporting

pdf (version <9.2)

unzip them and copy them to /var/www/glpi/plugins/

They will then appear under Setup -> Plugins

In order to install them you must chown www-data /var/www/glpi/plugins/

If you get version problems, you can have a look in setup.php for the GLPI_VERSION string to see if you can play with that

Setting up for OCS Inventory sync

  1. in ocsreports site config -> config -> tab Server -> enable TRACE_DELETED
  2. In Setup -> Plugins click on the name (OSCInventory NG) and then on the + next to the breadcrumbs
  3. Then under Tools -> OCSInventory NG you can test the configuration and configure the sync. You will have to still import by hand from here before the auto sync will run.
  4. Tools -> OCSInventory NG -> Configuration of server: Import options, fill in Web address of the OCSNG console, set Number of items to synchronize via the automatic OCSNG action to 100, change the rest to global import, set Use OCS dictionnary = no
  5. Setup -> Automatic Actions -> ocsng -> set status to Scheduled, run mode to CLI, edit /etc/cron.d/glpi -> execute for test, check logs every so often
  6. Under Assets I change the view to add OCSinventory tag, IP, MAC and put them at the top of the list.

This only works if you are clicking on the site. In order to have a proper scheduled run you need to put the following /etc/cron.d/glpi:

*/5 * * * * www-data /usr/bin/php5 /var/www/glpi/front/cron.php &>/dev/null

[1]

old

  1. In Setup -> General Setup -> Inventory tab (NB if you don't see this option click on the icon that looks like 4 columns of text with a down triangle next to it in the centre of the topbar) enable the OCSNG mode
  2. Setup -> OCSNG mode -> click on the servername to edit it. fill in the options and select what you want to import
  3. Tools -> OSCNG -> select the type of import.