agent-linux: allow hostname to be configured
agent-linux: allow FQDN to be configured
agent-linux: fallback to real hostname if custom hostname can't be canonicalized
agent-linux: reject 'localhost'