GLPI: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
Line 33: Line 33:
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:
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>
<pre>
*/5 * * * * www-data /usr/bin/php5 /var/www/monsite.com/glpi/front/cron.php &>/dev/null
*/5 * * * * www-data /usr/bin/php5 /var/www/glpi/front/cron.php &>/dev/null
</pre>
</pre>
[http://wiki.glpi-project.org/doku.php?id=en:config:crontab]
[http://wiki.glpi-project.org/doku.php?id=en:config:crontab]

Revision as of 19:50, 2 June 2016

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-2.1.0.tar.gz (get it from https://forge.glpi-project.org/tarballs-plugins/) / Network Architectures

fusioninventory-for-glpi_0.90.1.3.tar.gz

glpi-addressing-2.3.0.tar.gz

GLPI-dashboard_plugin-0.7.3.tar.gz

glpi-massocsimport-1.6.1.tar.gz

glpi-reports-1.9.1.tar.gz

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/

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. 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.
  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
  5. Setup -> Automatic Actions -> ocsng -> set status to Scheduled -> execute for test, check logs every so often