Why does my Linux agent registration show registration failed or late checkin?
search cancel

Why does my Linux agent registration show registration failed or late checkin?

book

Article ID: 284300

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

After completing all steps in the CH agent integration, you may see in the build logs that the agent registration failed, or there are "late checkin" in the console. 

Logs:

[2020-04-17 07:05:22 +0000] Agent registration failed

Console:

mceclip0.png

Check the logs

To see if these errors are extraneous, check the logs on the collectd side.  If there are contents in these directories, the integration was successful.

ls -alh /var/lib/chtcollectd/
ls -alh /var/lib/chtcollectd/i-instanceid/

Check the install command

If there were no contents in the collectd logs, go back to the installation page and confirm that your install command is formatted like the example given in the CloudHealth console.  Pay very close attention to the API key format.

Restart the agent services

After checking the logs and the installation command, check to see if the agent services are running.

ps –eaf | grep cht

There should be a chtcollectd and perfmon service running.  If these services are not running, restart them with the following commands. 

sudo /etc/init.d/cht_perfmon restart
sudo /etc/init.d/chtcollectd restart

What next?

If there are still no contents in the collection logs, please reach out to the CloudHealth support team.