Skip to main content

Discovery

This plugin can be integrated with Pandora FMS Discovery.

To do so, you must install the ".disco" package, which you can download from the Pandora FMS repository:

https://pandorafms.com/library/ 

image.png

Once loaded, you can monitor MongoDB environments by creating Discovery tasks from the Management > Discovery > Applications section.

For each task, the following minimum information will be required:

  • MongoDB target strings : List of target instances, separated by commas or new lines. You must specify the connection URI for each one. Example: mongodb://172.17.0.2:27017 or mongodb://monitor_user:s3cur3P@[email protected]:27017/monitoring?authSource=admin.

Captura desde 2026-02-04 14-13-37.png

You can also adjust the task settings to customize the monitoring as desired:

  • Max threads: To optimize execution time, multiple threads can be configured to monitor the task's agents. Note that configuring multiple threads may increase the task's CPU usage.
  • Target agent: List of target agents for the MongoDB targets to be monitored. These are the names that will be used to generate the agents for each target defined in the task. This will be a comma-separated or line-separated list. The position of the names in the list must match the position of the MongoDB targets in their respective lists; that is, the first name will be used for the first target, and so on. If the list is line-separated, blank lines will be ignored. If no agent name is specified for a target, its name will be used as the agent name.
  • Use prefix for agents: Enable this token to specify a custom prefix for the created agents.
  • Custom prefix for agents: Prefix for the created database agents.
  • Use prefix for modules: Enable this token to be able to specify a custom prefix for the created modules.
  • Custom prefix for modules: Prefix for created modules.
  • Scan databases: Enable this token to monitor the databases of the configured instances.
  • Create agent per database: Enable this token to generate one agent for each database generated.

Captura desde 2026-02-04 14-43-09.png

  • Check engine uptime: SiIf seenabled, activathis monitorizaráwill elmonitor the uptime deof losthe objetivos.targets.

  •  

    Retrieve query statisticsstatistics:: SiIf seenabled, activathis monitorizaráwill lasmonitor estadísticasquery destatistics.

    consultas.

     

  • Analyze connectionsconnections:: SiIf seenabled, activathis monitorizaráwill lasmonitor conexiones.connections.

     

  • Retrieve latency statisticsstatistics: :If Sienabled, sethis activawill monitorizarámonitor lalatency.

    latencia.

     

  • Retrieve network statisticsstatistics: :If Sienabled, sethis activawill monitorizarámonitor lasnetworks.

    redes.

Captura desde 2026-02-04 14-36-32.png

PorFinally, ultimo,you secan podráconfigure configurarcustom consultasqueries personalizadasin enthe ellast ultimostep pasoof dethe la tareatask (opcional)optional).

 

  • ExecuteRun custom queries:queries: SiIf seenabled, activathis habilitarasallows layou posibilidadto de ejecutarrun custom queries.
  • Custom queries: EnIn estathis ventanawindow, seyou puedencan especificarspecify losthe móduloscustom personalizadosmodules conwith lasthe desired custom queries deseadas(see (verthe apartado"Parameters" Parámetrossection parafor entenderthe lacorrect sintaxisconfiguration de configuración correcta)syntax)


Captura desde 2026-02-04 14-16-07.png

LasTasks tareasthat queare sesuccessfully completencompleted exitosamentewill dispondráninclude dean unexecution sumariosummary decontaining ejecuciónthe confollowing la siguiente información:information:

  • Total agentsagents:: Total denumber agentesof generadosagents porgenerated laby tarea.the task.
  • Targets upup:: Total denumber objetivosof atargets losthat quecould habe sidoconnected posible conectar.to.
  • Targets downdown:: Total denumber objetivosof atargets losthat quecould nonot habe sidoconnected posible conectar.to.

image.png

LasTasks tareasthat queare nonot secompleted completensuccessfully exitósamentewill dispondráninclude dean unexecution sumariosummary delisting ejecuciónthe registrandoerrors losthat errores producidos.occurred.