GLPI: Difference between revisions
No edit summary |
|||
Line 31: | Line 31: | ||
# 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. | ||
# 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 in the crontab of www-data: | |||
<pre> | |||
*/5 * * * * /usr/bin/php5 /var/www/monsite.com/glpi/front/cron.php &>/dev/null | |||
</pre> | |||
[http://wiki.glpi-project.org/doku.php?id=en:config:crontab] | |||
== old == | == old == |
Revision as of 19:43, 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
- in ocsreports site config -> config -> tab Server -> enable TRACE_DELETED
- 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.
- 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 in the crontab of www-data:
*/5 * * * * /usr/bin/php5 /var/www/monsite.com/glpi/front/cron.php &>/dev/null
old
- 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
- 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 -> 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