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

Agent bombs out if it's unable to determine hostname

Open conorbranagan opened this issue 13 years ago • 2 comments

  • Nothing shows up in the logs
  • You only can tell this is the issue if you run it manually.
  • The hostname was set to 'localhost.localdomain'

Here's the full stacktrace (sorry for bad formatting)

Traceback (most recent call last): File "/usr/bin/dd-agent", line 271, in ? sys.exit(main()) File "/usr/bin/dd-agent", line 227, in main agent.run(config=agentConfig) File "/usr/bin/dd-agent", line 96, in run self.collector = Collector(agentConfig, emitters, systemStats) File "/usr/share/datadog/agent/checks/collector.py", line 99, in __init__ self._event_checks = [ File "/usr/share/datadog/agent/util.py", line 195, in get_hostname raise Exception('Unable to reliably determine host name') Exception: Unable to reliably determine host name

conorbranagan avatar Apr 26 '13 19:04 conorbranagan

It should probably fail more gracefully suggesting you change your hostname.

pfrederiksen avatar May 02 '13 18:05 pfrederiksen

Fixed by f6964edadf984f77a705ab0dcc74256bf25ccc8a

remh avatar May 03 '13 18:05 remh