# Mongo DB and Mongo DB atlas # Introduction **Ver**. 25-08-2021 With this plug-in you can view the stats of a database and its collections, it supports Mongo DB atlas compatibility.
**Systems where it has been tested** | CentOS 7, Fedora |
**Systems where it should work** | Any linux system |
**Parámetro** | **Descripción** |
-u <uri> --u <uri> | The connection uri (mandatory) |
-s <server> --server <server> | For take stats server (cluster) |
-d <name\_database> --databases <name\_database> | To take the stats from a database, the one with the name you enter |
-a <1> --alldatabases <1> | To get the stats from all databases, it is activated with 1 |
-p <prefix> --prefix <prefix> | To name the agents (optional) |
-c <1> --collectionstats <1> | To activate the stats of the collections in the database, activate with 1 (optional). |
-g GROUP, --group GROUP | Pandora FMS target group (optional) |
--data\_dir DATA\_DIR | Pandora FMS data directory. By default it is /var/spool/pandora/data\_in/ (optional) |
--as\_agent\_plugin | It's optional, if you want the plugin to be an agent plugin and put the modules in the pandora agent, execute this with a 1 (optional) |
**Module name** |
collections |
views |
objects |
avgObjSize |
datasize |
storagesize |
totalfreestoragesize |
numextents |
indexes |
indexsize |
filesize |
nssizemb |
status |
**Module name** |
size |
count |
avgobjsize |
storagesize |
freestoragesize |
capped |
nindexes |
totalindexsizes |
totalsizes |
scalefactor |
status |
connections current |
connections avalaible |
connections total created |
network bytes in |
network bytes out |
network num requests |
operations insert |
operations query |
operations update |
operations delete |
operations get more |
operations command |
writes latency |
writes ops |
reads latency |
reads ops |
commands latency |
commands ops |