fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
251 stars 125 forks source link

No way to change hostname via config #962

Closed vazome closed 4 weeks ago

vazome commented 2 years ago

Skimmed trough config file and couldn't find any piece that will replace hostname with a specified value. So host to appear in GLPI under a new name. Like in Zabbix. This is very useful in edge-cases where hostname is identical between two hosts and there is no way to change either of those.

C-Duv commented 2 years ago

In the end, what you want is a local (on the host) configuration file that says "Please replace the obtained hostname with X in the XML inventory you are about to send to GLPI plugin"?

Some kind of inventory_overwrite.xml file.

guillomovitch commented 2 years ago

Solution 1: post-process the agent result before sending it to the GLPI server Solution 2: change the name in GLPI, and lock it