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

book

Article ID: 4394

calendar_today

Updated On:

Products

CA Infrastructure Management CA Infrastructure Management CA Performance Management - Usage and Administration CA Performance Management - Data Polling

Issue/Introduction

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

Cause

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

Environment

CAPM 2.x +

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.