Is there a way to monitor the number of files in a folder and create an alert if it exceeds

Error: could not load directory:

  • Core Check Loader: Check directory not found in Catalog
    Error: no valid check found
    no valid check found

any chance whoever built that agent specifically excluded that check? Everything I see says it’s by default included.

e.g.

invoke agent.build --build-exclude=directory

Possibly, is there a config file that would show if anything is excluded?

that I don’t know, but I think there’s a directory (something like /opt/datadog/.../checks/ that shows what’s installed.

Here’s an example I found on an issue for some other check

"/opt/datadog-agent/.local/lib/python3.8/site-packages/datadog_checks/directory/__init__.py"

not finding anything like that

datadog-agent integration show

I don’t know if this only lists ones not in the core, but it’s worth a check

interesting… no “integration” option in this version

dang; the next thing I was going to suggest was datadog-agent integration install directory , but if you don’t have integration, i dunno

datadog-agent configcheck is there though

interesting it sees the config file for directory

yeah; it sounds like it sees your file, but it doesn’t know what “directory” means, assuming there’s no “directory” integration installed

Right, seems like it would have to match those up to perl scripts somewhere

I assume <https://github.com/DataDog/integrations-core|these python ones>

https://github.com/DataDog/integrations-core/blob/master/directory/datadog_checks/directory/directory.py

honestly this is where I’d look into reinstalling the agent altogether, but maybe someone else will have a better idea

I got a support ticket opened too… it may come down to reinstalling the agent

probably would fix it but then we may not know why it didn’t work either… shrug…