Replies: 3 comments 13 replies
-
Hi @liedekef |
Beta Was this translation helpful? Give feedback.
-
Well, it seems glpi uses hardware=>name as name for the asset. So: for network-discovered assets that's (most of the time) set to the dns name, but for agent-created inventories it is in fact the "name" of the device.
My preference would go to a config param. Reason behind this: imagine a laptop that connects from work (having a work-domain related fqn) and then later on connects from home (where, before vpn is active, the fqdn might be related to your internal domain, or the domain of your isp). Allowing to set the name of the device in the config would allow for a more consistent behavior. Next to that, it seems that for linux the short hostname is always "forced": |
Beta Was this translation helpful? Give feedback.
-
I understand that the additional-content option is possible (and apparently it supports xml and json files) so that is an option, but: would you be willing to consider a PR adding the "agent name" as a config option? This would be more in line with other tooling (like zabbix, nagios, ...) that allow to set the client name if wanted (and take the original behavior if nothing is present, in this case: the short hostname). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Documentation & bug reporting acknowledgment
Yes, I read it
Describe your problem
When registering a server via an agent, an asset gets created but with the short hostname. Is there a way to either use the fqdn or somehow track the dns-info from the host? I do see the info present in the xml:
so it is being sent :-)
Beta Was this translation helpful? Give feedback.
All reactions