Description

This check ensures that every Linode instance has Shutdown Watchdog (Lassie) enabled. Watchdog is Linode's automatic recovery feature: it monitors the Linode and boots it again if it powers off unexpectedly, helping to keep services available without manual intervention. Each Linode is evaluated separately.

Rationale

If a Linode shuts down unexpectedly (for example after a kernel panic or an out-of-memory condition) and Watchdog is disabled, it stays powered off until someone notices and starts it manually. This causes longer outages for the services running on it. Watchdog restores the Linode automatically.

Impact

  • No cost and no downtime to enable

  • Watchdog powers a Linode back on up to 5 times within 15 minutes. If it shuts down 6 or more times in that window, it stays off until it is powered on manually

  • Watchdog never causes a shutdown; it only boots a Linode that powered off unexpectedly

Default Value

Shutdown Watchdog is enabled by default on all new Linodes.

Pre-Requisites

  • A Cloud Manager user with permission to modify the Linode

  • For the CLI test plan: a Personal Access Token created by an unrestricted user with Linodes: Read Only scope

  • For the CLI implementation: Linode CLI (linode-cli) configured with a token that has Linodes: Read/Write scope

Remediation

Test Plan

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. Click the Settings tab and scroll to the Shutdown Watchdog section.

  4. If the toggle is off, Watchdog is not enabled.

  5. Repeat for each Linode.

CLI:

Set the token:

export LINODE_TOKEN="<your-personal-access-token>"

List every Linode with its Watchdog status:

curl -s -H "Authorization: Bearer $LINODE_TOKEN" "https://api.linode.com/v4/linode/instances?page_size=500" | jq '.data[] | {id, label, region, watchdog_enabled}'

A Linode passes if watchdog_enabled is true and fails if it is false.

Implementation Steps

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. Click the Settings tab.

  4. Scroll to the Shutdown Watchdog section.

  5. Click the toggle to enable it.

  6. Repeat for each Linode that failed the check.

CLI:

Enable Watchdog for a Linode:

linode-cli linodes update <LINODE_ID> --watchdog_enabled true

Backout Plan

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. Click the Settings tab and scroll to the Shutdown Watchdog section.

  4. Click the toggle to disable it.

CLI:

Disable Watchdog for a Linode:

linode-cli linodes update <LINODE_ID> --watchdog_enabled false

Reference