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.
To install the Reboot Required check on your host:
ddev release build reboot_requiredto build the package.
datadog-agent integration install -w path/to/reboot_required/dist/<ARTIFACT_NAME>.whl.
To configure the Reboot Required check:
reboot_required.d/folder in the
conf.d/folder at the root of your Agent’s directory.
conf.yamlfile in the
reboot_required.d/folder previously created.
Consult the sample reboot_required.yaml file and copy its content in the
conf.yaml file. Minimum configuration should include:
init_config: instances: - reboot_signal_file: "/var/run/reboot-required"
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
Run the Agent’s
status subcommand and look for
reboot_required under the Checks section.
No metrics are collected.
The reboot_required check does not include any events.
To create alert conditions on these service checks in Datadog, select ‘Custom Check’ on the Create Monitor page, not ‘Integration’.
The check returns:
OKif the system does not require a reboot or for less than
WARNINGif the system has required a reboot for longer than
CRITICALif the system has required a reboot for longer than
Need help? Contact Datadog support.
Mistake in the docs? Feel free to contribute!