Agent Unix crashes with error message U02003041 Invalid 'gethostbyname' call, file name. Error code: ('1' - 'HOST_NOT_FOUND')

Document ID : KB000087325
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
U02003041 Invalid 'gethostbyname' call, file name 'ip-'. Error code: ('1' - 'HOST_NOT_FOUND')

Right after startup, Unix / Linux agent throws a "U02003041 Invalid 'gethostbyname' call, file name. Error code: ('1' - 'HOST_NOT_FOUND')" error message and ends abnormally.
Environment:
OS: All Linux/Unix
OS Version: N/A
Cause:
Cause type:
Other
Root Cause: The agent is failing to get the hostname of the host it's running on.
Resolution:
Add the agent's host name and IP to /etc/hosts, then restart the agent.

Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
N/A