ansible-datadog icon indicating copy to clipboard operation
ansible-datadog copied to clipboard

get lsof installed and configured in sudoers file

Open ssbarnea opened this issue 8 years ago • 4 comments

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

ssbarnea avatar Mar 21 '16 10:03 ssbarnea

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.

olivielpeau avatar Jun 08 '16 09:06 olivielpeau

Any news on this feature?

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

kasperkronborg avatar Jun 27 '16 09:06 kasperkronborg

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.

ssbarnea avatar Jun 27 '16 09:06 ssbarnea

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.

julian-alarcon avatar May 31 '21 20:05 julian-alarcon