Tagged: agent

0

Custom File Check for Datadog Agents

One of the greatest things I’ve found about Datadog agent is it’s extensible nature.  While there are numerous OOB integrations, we often find an edge case or two that require some quick code and a custom check here and there. This is a pretty basic check that looks to see if a file exists and if it does, reports a successful check, and if not, reports a check error tagged with the particular filename.  Additionally, if the file does exist,   file.age  and  file.modified  metrics are reported back also tagged by filename.  Handy for knowing if certain files exist and how old they may be....

Linux Shell 0

Custom Shell Check for Datadog Agents

One of the greatest things I’ve found about Datadog agent is it’s extensible nature.  While there are numerous OOB integrations, we often find an edge case or two that require some quick code and a custom check here and there. This is one that had previously been put up in one of the repos but I found that as the agent had updated, this check to run shell commands and retrieve metrics relied on some code that was included with the agent that changed over some revisions. So… I re-wrote this to operate as a standalone. This check allows you to run...