We want to monitor quota usage via Nagios. In the shell, I can run db.runCommand({getCmdLineOpts: 1}) and find the number of quotaFiles and then use listFiles(dbPath) to see how many files there are. I'm trying to mimic this activity via the check_mongodb.py Nagios plugin which uses PyMongo to access the API. While I can get the information from getCmdLineOpts, I can't seem to find a way to get the list of files. Is there a way to get the number of files currently used by a database that is accessible via the API. Note that I'm not asking about how to do this in PyMongo, but whether something like this is even available via the API. If it is, I'll figure it out.