You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-11-18 13:29:43

2G_Storm
Member
Registered: 2022-01-17
Posts: 3

[SOLVED] GLPI inventory and machines with same hostnames

Hello everyone,
I am running GLPI inventory to keep track of my customer's hardware. I have several machines located in several offices and i use the proxy function.

The proxy service runs on a machine whose hostname is the same for all my customers (i have to do this for configuration reasons).

There are entity assigning rules that work correctly. I have tried adding machine with different hostnames and they work: the assigned entity is correct.

My problem is this:
If i add a machine with same hostname even if the sub entity is assigned correctly it will overwrite the previous record regardless of the entity.

My configuration is as follows:
Root entity
    |
    - Sub entity 1
    - Sub entity 2
    ....

Let's say that i have a machine called host1 in the sub entity 1 and i have already added that. Now i have another machine called host 1 at the sub entity 2 office and i want to add it to the inventory as well. When i install the plugin and i run the first inventory i can see it gets added but it overwrites the host at the sub entity 1.

With fusion inventory i could add all my machines, even with the same hostnames, and i could see them assigned to different sub entities. Is there a way to make the glpi plugin work the same way?

thank you in advance

Last edited by 2G_Storm (2022-11-21 13:00:34)

Offline

#2 2022-11-21 12:59:26

2G_Storm
Member
Registered: 2022-01-17
Posts: 3

Re: [SOLVED] GLPI inventory and machines with same hostnames

Okay, i have solved this problem myself. the problem is that GLPI probably doesn't like VMs as they have too few data by default, like hardware serial numbers for example. Maybe my assumption is incorrect but i think GLPI kind of indexes the machine by reading the motherboard serial number instead of, for example, internally assigning an ID.

If i may, would it be possible to instead using machine provided data, such as serial numbers which might not be present or readable sometimes, an automatic ID assignment? Even a simple "counter" field in the DB should do the trick i guess.

Please, take my comment as noob-made proposals. No criticism meant smile

Keep up the good work and thank you all

Offline

Board footer

Powered by FluxBB