Can't install Data Collector getting error "Error: Could not determine hostname"

Document ID : KB000004394
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Getting the error "Error: Could not determine hostname" when installing the data collector. 

Environment:
CAPM 2.x +
Cause:

This error is caused when there there no an entry for the value returned from the hostname command in the /etc/hosts file.  

Resolution:

1. Run the hostname command 

2. Edit the /etc/hosts file and make sure there is an entry or alias set for the systems I.P. address and the name retunred from the hostname command above.