Hosts registered with wrong hostnames (1H1, 1H2)

Getting this problem with v0.59.0 and v0.59.1

Tested with docker latest stable, beta and alpha versions, with the same result.

The hostname field of a Host is populated with the hostname the OS reports when the agent registers. The name field is now always null by default, and the UI shows the first non-empty of:

  • name – if the user has provided a custom name, use it
  • hostname – otherwise show the hostname
  • '('+id')' – but if there isn’t a hostname either for some reason, show something.

So that would imply that your OS has nothing to say when the agent runs hostname to get it, I suppose. Except it worked fine for me: