dd-agent
dd-agent copied to clipboard
Agent bombs out if it's unable to determine hostname
- 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
It should probably fail more gracefully suggesting you change your hostname.
Fixed by f6964edadf984f77a705ab0dcc74256bf25ccc8a