DataDog / ansible-datadog

Ansible role for Datadog Agent
Apache License 2.0
298 stars 222 forks source link

get lsof installed and configured in sudoers file #19

Open ssbarnea opened 8 years ago

ssbarnea commented 8 years ago

lsof is needed in order to gather important metrics for datadog but is neither installed nor configured inside sudoers so dd-agent user can call it.

See https://github.com/DataDog/dd-agent/issues/853

olivielpeau commented 8 years ago

Hi @ssbarnea! I think we should consider adding this once the feature has been implemented in the process check of dd-agent.

I'll leave the issue in the Later milestone until then.

kasperkronborg commented 8 years ago

Any news on this feature?

@ssbarnea How did you end up solving your monitoring of open FDs for a certain user?

ssbarnea commented 8 years ago

Sorry, got busy with other urgencies and I am not sure when I will be able to look at this again. For the moment I do not need the future anymore but I am sure I will need it again at some point.

julian-alarcon commented 3 years ago

The recommended way to do this according to the documentation https://docs.datadoghq.com/integrations/process/#configuration is to add this line to the /etc/sudoers file

dd-agent ALL=NOPASSWD: /bin/ls /proc/*/fd/

An additional task with an specific flag should be added to this ansible role.