Reboot Required

Supported OS Linux

Integration version1.0.0

Overview

Linux systems that are configured to autoinstall packages may not be configured to autoreboot (it may be desirable to time this manually). This check enables alerts to be fired in the case where reboots are not performed in a timely manner.

Setup

The Reboot Required check is not included in the Datadog Agent package, so you need to install it.

Installation

For Agent v7.21+ / v6.21+, follow the instructions below to install the Reboot Required check on your host. See Use Community Integrations to install with the Docker Agent or earlier versions of the Agent.

  1. Run the following command to install the Agent integration:

    datadog-agent integration install -t datadog-reboot_required==<INTEGRATION_VERSION>
    
  2. Configure your integration similar to core integrations.

Configuration

  1. Edit the reboot_required.d/conf.yaml file in the conf.d/ folder at the root of your Agent’s configuration directory. See the sample reboot_required.d/conf.yaml for all available configuration options.

  2. Make sure you create a dd-agent (user that runs the Datadog agent) writable directory for the agent, and used by this check. The default of /var/run/dd-agent is ideal. The snippet below should suffice.

    sudo mkdir /var/run/dd-agent
    sudo chown dd-agent:dd-agent /var/run/dd-agent
    
  3. Restart the Agent.

Validation

Run the Agent’s status subcommand and look for reboot_required under the Checks section.

Data Collected

Metrics

No metrics are collected.

Events

The reboot_required check does not include any events.

Service Checks

system.reboot_required
Returns CRITICAL if the system has required a reboot for longer than days_critical, returns WARNINGif the system has required a reboot for longer thandays_warning, returns OK` otherwise.
Statuses: ok, warning, critical

Troubleshooting

Need help? Contact Datadog support.

PREVIEWING: safchain/fix-custom-agent