fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

No way to change hostname via config

Open vazome opened this issue 4 years ago • 2 comments

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.

vazome avatar Nov 15 '21 13:11 vazome

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.

C-Duv avatar Jun 25 '22 00:06 C-Duv

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

guillomovitch avatar Jun 25 '22 07:06 guillomovitch