pluginsGLPI / ocsinventoryng

Plugin ocsinventoryng for GLPI
GNU General Public License v2.0
68 stars 52 forks source link

Linking new computers in OCSNG with existing ones in GLPI doesn't work #249

Closed sessterling closed 3 years ago

sessterling commented 4 years ago

Plugin Version : 1.7.0 GLPI Version : 9.5.1 OCSREPORTS : Ocs Inventory Server 2.7

I try to linking new computers in OCSNG with existing ones in GLPI , but the list is always empty.

Muzo18 commented 4 years ago

Hello,

I'm French. I got the same issue.

Plugin Version : 1.7.0 GLPI Version : 9.5.1 OCSREPORTS : Ocs Inventory Server 2.5

"Import new computers" list contains some computers, but "Link new OCSNG computers to existing GLPI computers" list is empty.

Thanks for your help.

Have a good day.

tsmr commented 4 years ago

Have you created a rule for link computers ? http://.../front/ruleimportcomputer.php

Muzo18 commented 4 years ago

Thanks for your response.

I have the same rule between GLPI 9.4 and 9.5. image

There is something to change ?

Muzo18 commented 4 years ago

Je pense avoir compris.

La règle qui était reprise de la version précédente nécessitait que le nom de machine ET le numéro de série soient communs pour proposer la liaison OCS-GLPI. Dans mon cas, pour les ordinateurs concernés, le nom était OK, mais le numéro de série ne correspondait pas (pas bien pris en charge dans le BIOS et dans OCS). Comme les 2 critères ne correspondaient pas, les ordinateurs n'apparaissent pas dans la liste des liaisons possible.

J'ai créé une nouvelle règle uniquement sur le nom, et la liste n'est plus vide.

Merci de m'avoir guidé. Je pense que d'autres utilisateurs vont rencontrer ce soucis, mais ils pourront le régler.

Bonne journée.

rollandpf commented 4 years ago

Bonjour,

j'ai le même problème. Modifier les règles comme indiqué ne change rien pour moi. Par contre j'ai remarqué que dans mon cas la non présentation des anciens éléments à lier vient de la récursivité.

J'ai plusieurs entités et sous entités. Si je me place dans l'entité racine la liste des éléments à lier est vide. Si je me positionne dans la sous-entité, où l’élément à lier est enregistré dans GLPI, il apparaît.

Bonne journée.

Plugin Version : 1.7.0 GLPI Version : 9.5.1 OCSREPORTS : Ocs Inventory Server 2.7 Debian 10.4

tigerblue77 commented 4 years ago

Bonjour,

nous rencontrons le même problème en 9.5.1, nos nouveaux ordinateurs atterrissent dans "Importation de nouveaux ordinateurs" alors que précédemment ils étaient bien ajoutés à notre base GLPI. Nous avons une tâche CRON qui fonctionne toutes les demi-heures et appelle les deux commandes suivantes :

/var/www/glpi/plugins/ocsinventoryng/scripts/ocsng_fullsync.sh --thread_nbr=2 --server_id=1 /var/www/php /var/www/glpi/front/cron.php --force ocsng

Cela fonctionnait en 9.4.x

Merci d'avance pour votre aide

Plugin Version : 1.7.0 GLPI Version : 9.5.0 OCSREPORTS : Ocs Inventory Server 2.7 Ubuntu 18.04.5 LTS

y0rune commented 3 years ago

When you would like to solve that problem you only must create a new rule.

Administration -> Rules -> Rules for assigning an item to an entity Rules for import and link computers image image

After that you only have to enable that rule and it should work. image

Muzo18 commented 3 years ago

Hello y0rune,

Thanks for your answer, but I can't choose the criteria "is already present in GLPI". The only choices presented by GLPI in my case :

2020-09-30 12_54_11-GLPI - Rules - 21

y0rune commented 3 years ago

@Muzo18 You should go to Rules for assigning an item to an entity image image

Muzo18 commented 3 years ago

Oh yes, I understand the error : I selected "Rules for Assigning an Item to an Entity" like you said, but in the screenshot, it's "Rules for import and link computers". It works better now ;o) I also created a new rule with the same parameters, but using "serial numbers" instead of "computer's name".

All is ok now.

Thank you

y0rune commented 3 years ago

Sorry yeah that was my mistake. I changed it in the previous message.


Y0rune

Muzo18 commented 3 years ago

Don't worry. Thank you.