DEV Community

Cover image for How to Restore Hosts Removed from Monitoring in Mackerel
Kenta Takeuchi
Kenta Takeuchi

Posted on • Originally published at bmf-tech.com

How to Restore Hosts Removed from Monitoring in Mackerel

This article was originally published on bmf-tech.com.

Overview

This is a note on how to restore hosts that were mistakenly retired or unintentionally removed from monitoring in Mackerel.

Procedure

Simply restarting the mackerel-agent will not automatically restore the host, so you need to update the hostId assigned to the host.

service mackerel-agent stop
cd /var/lib/mackerel-agent
mv id /tmp/
service mackerel-agent start
Enter fullscreen mode Exit fullscreen mode

Thoughts

I sometimes panic, so I want to be careful...

Top comments (0)