New announcements for Serverless, Network, RUM, and more from Dash! New announcements from Dash!

Reboot Required

Agent Check Agent Check

Supported OS: Linux

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

Installation

If you are using Agent v6.8+ follow the instructions below to install the Reboot Required check on your host. See our dedicated Agent guide for installing community integrations to install checks with the Agent prior to version 6.8 or the Docker Agent:

  1. Install the developer toolkit.
  2. Clone the integrations-extras repository:

    git clone https://github.com/DataDog/integrations-extras.git.
    
  3. Update your ddev config with the integrations-extras/ path:

    ddev config set extras ./integrations-extras
    
  4. To build the reboot_required package, run:

    ddev -e release build reboot_required
    
  5. Download and launch the Datadog Agent.

  6. Run the following command to install the integrations wheel with the Agent:

    datadog-agent integration install -w <PATH_OF_REBOOT_REQUIRED_ARTIFACT_>/<REBOOT_REQUIRED_ARTIFACT_NAME>.whl
    
  7. Configure your integration like any other packaged integration.

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

To create alert conditions on these service checks in Datadog, select ‘Custom Check’ on the Create Monitor page, not ‘Integration’.

system.reboot_required

The check returns:

  • OK if the system does not require a reboot or for less than days_warning or days_critical.
  • WARNING if the system has required a reboot for longer than days_warning days.
  • CRITICAL if the system has required a reboot for longer than days_critical days.

Troubleshooting

Need help? Contact Datadog support.


Mistake in the docs? Feel free to contribute!