-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The datadog-agent service is not being registered when installing on Amazon Linux #719
Comments
Hi @jtstrohl! Amazon Linux (at least, AL2) uses systemd, so the init config doesn't need to be in Can you run Also, what version of the Agent are you installing (if not latest)? You can see that with |
Hi @albertvaka - Thanks for your response....We are using Amazon Linux 1 which does NOT use systemd, so unfortunately, I cannot run the The funny thing is, we build off of the same AWS AMI every time. When we were using datadog cookbook version 2.16.0, the As you can see in the below snippet, there is indeed a datadog agent process running, but it seems to launched by the recipe using a bash script -- We want to understand why it doesn't respond to the "service" interface, because that's how the official Datadog Linux documentation gives instructions to inspect/manage/maintain the service.
|
Hi again @jtstrohl, I think I know what happens here. Cookbook 2.x installed Agent 5 by default, while the current cookbook installs Agent 7. While the Agent 5 RPM package included SysV init files, it's not the case for the Agent 7 RPM package. I don't think there is enough demand for SysV init files to justify adding them at this point, but I will pass it as a feature request for the Agent team. And about the docs: we should fix them since as you point out they don't seem to be updated. Albert |
Reading a bit about AL1, it seems to use upstart and not SysV. In that case, the following command should work: |
Thanks @albertvaka .... That explanation makes a lot of sense actually -- So the difference is in the agent RPM package, not with the cookbook/recipe or their dependencies. AL1 does appear to support upstart, although the I also discovered that I can run the following commands respectively to start, stop, and status the agent process, even though it's not as ideal as being able to use the SysV commands:
And even these commands and their syntax differ a bit from what is included in the Datadog documentation under the "Other Commands" section. So aside from the fact that I think the Documentation probably needs updated, I think the case can be closed as there is technically no "issue" with the cookbook/recipe. What are your thoughts? I appreciate your attention and help on this. --Jonathan |
I'm happy that works for you :) Note that |
After seemingly successful install of the datadog cookbook version 4.3.0 using recipes dd-agent and dd-handler, I can see that the Datadog agent is running and showing up in the Datadog web console. However, according to the Datadog documentation here, we should be able to run the following Linux command to get version and other information about the installed DD agent:
sudo service datadog-agent status
However, we get the following output when running this command:
datadog-agent: unrecognized service
Also, the service configuration no longer shows up in /etc/init.d/datadog-agent like it used to when installed with previous versions of this cookbook.
By all indications in the chef-client output, the service is being set up and started, configured, and restarted. What gives?
The text was updated successfully, but these errors were encountered: