Basic Agent Usage for Red Hat
Rapport de recherche Datadog : Bilan sur l'adoption de l'informatique sans serveur Rapport : Bilan sur l'adoption de l'informatique sans serveur

Basic Agent Usage for Red Hat

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Overview

This page outlines the basic features of the Datadog Agent for Red Hat. If you haven’t installed the Agent yet, instructions can be found in the Datadog Agent Integration documentation.

Note: RedHat 6 and above are supported.

Commands

In Agent v6 and v7, the service manager provided by the operating system is responsible for the Agent lifecycle, while other commands must be run via the Agent binary directly. In Agent v5, almost everything is done via the service manager.

Red Hat 7 and higher

DescriptionCommand
Start Agent as a servicesudo systemctl start datadog-agent
Stop Agent running as a servicesudo systemctl stop datadog-agent
Restart Agent running as a servicesudo systemctl restart datadog-agent
Status of Agent servicesudo systemctl status datadog-agent
Status page of running Agentsudo datadog-agent status
Send flaresudo datadog-agent flare
Display command usagesudo datadog-agent --help
Run a checksudo -u dd-agent -- datadog-agent check <CHECK_NAME>

Red Hat 6

DescriptionCommand
Start Agent as a servicesudo start datadog-agent
Stop Agent running as a servicesudo stop datadog-agent
Restart Agent running as a servicesudo restart datadog-agent
Status of Agent servicesudo status datadog-agent
Status page of running Agentsudo datadog-agent status
Send flaresudo datadog-agent flare
Display command usagesudo datadog-agent --help
Run a checksudo -u dd-agent -- datadog-agent check <CHECK_NAME>
DescriptionCommand
Start Agent as a servicesudo service datadog-agent start
Stop Agent running as a servicesudo service datadog-agent stop
Restart Agent running as a servicesudo service datadog-agent restart
Status of Agent servicesudo service datadog-agent status
Status page of running Agentsudo service datadog-agent info
Send flaresudo service datadog-agent flare
Display command usagesudo service datadog-agent
Run a checksudo -u dd-agent -- dd-agent check <CHECK_NAME>

Note: If the service wrapper is not available on your system, use:

  • On upstart-based systems: sudo start/stop/restart/status datadog-agent
  • On systemd-based systems: sudo systemctl start/stop/restart/status datadog-agent

[Learn more about Service lifecycle commands][2]

Configuration

The configuration files and folders for the Agent are located in:

  • /etc/datadog-agent/datadog.yaml

Configuration files for Integrations:

  • /etc/datadog-agent/conf.d/

The configuration files and folders for the Agent are located in:

  • /etc/dd-agent/datadog.conf

Configuration files for Integrations:

  • /etc/dd-agent/conf.d/

Troubleshooting

Refer to the dedicated Agent Troubleshooting documentation.

Working with the embedded Agent

The Agent contains an embedded Python environment at /opt/datadog-agent/embedded/. Common binaries such as python and pip are contained within /opt/datadog-agent/embedded/bin/.

See the instructions on how to add packages to the embedded Agent for more information.

Further Reading