Infrastructure 2019-09-17

How to Restore Hosts Removed from Monitoring in Mackerel

Recover accidentally excluded monitoring hosts in Mackerel by updating hostId after host migration or removal from monitoring system.

Read in: ja
How to Restore Hosts Removed from Monitoring in Mackerel

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

Thoughts

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

Tags: Mackerel Tips
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
☕ Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles