Skip to main content

Discovery

This plugin can be integrated with Pandora FMS Discovery.

To do this,so, you must loadinstall the ".disco" packagepackage, thatwhich you can download from the Pandora FMS library:repository:

https://pandorafms.com/library/ 

image.pngimage.png

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

For each task, the following minimum datainformation will be requested:

required:

  • MongoDB target strings : List of Mongodbtarget targets to monitor by the task. It will be a listinstances, separated by commas or new lines. EachYou targetmust databasespecify can be defined by adding its name.
  • Uri – Standard MongoDBthe connection URI tofor connecteach toone. aExample: MongoDBmongodb://172.17.0.2:27017 databaseor servermongodb://monitor_user:s3cur3P@[email protected]:27017/monitoring?authSource=admin.

image.pngCaptura desde 2026-02-04 14-13-37.png

It

is

You can also possible to adjust the task configurationsettings to customize the desiredmonitoring monitoring:as desired:

  • Max threads: toPara optimizeoptimizar executionel time,tiempo multiplede threadsejecución, mayse bepodrán configuredconfigurar tomúltiples monitorhilos thepara taskmonitorizar agents.los Noteagentes thatde configuringla multipletarea. threadsHay mayque increasetener theen taskcuenta que configurar múltiples hilos puede aumentar el uso de CPU usage.
    de la tarea.
  • Target agent: ListLista ofde targetagentes agentsobjetivo para los objetivos MongoDB a monitorizar. Es decir, los nombres con los que se generarán los agentes de cada objetivo definido en la tarea. Será una lista separada por comas o por líneas. La posición de los nombres en la lista deberá coincidir con la posición de los objetivos MongoDB en su lista, es decir, el primer nombre se usará para el primer objetivo y así sucesivamente. Si la lista se separa por líneas, las líneas en blanco se ignorarán. Si no se especifica un nombre de agente para un objetivo se usará su nombre como nombre del agente.
  • Use prefix for theagents: MongoDBHabilitar targetseste totoken monitor.para Thatpoder is,especificar theun namesprefijo withcustomizado whichpara thelos agentsagentes of each target defined in the task will be generated. It will be a comma or line separated list. The position of the names in the list should match the position of the MongoDB targets in your list, that is, the first name will be used for the first target and so on. If the list is separated by lines, blank lines will be ignored. If no agent name is specified for a target, its name will be used as the agent name.
    creados.
  • Custom moduleprefix prefix:for agents: Prefijo Textpara includedlos asagentes de base de datos creados.
  • Use prefix for allmodules: theHabilitar generatedeste moduletoken names.para Itpoder isespecificar usefulun toprefijo locatecustomizado thepara moduleslos generatedmodulos bycreados.
  • the
  • Custom taskprefix orfor tomodules: distinguishPrefijo thempara fromlos others.
    módulos creados.
  • Scan databases: Habilitar este token para monitorizar las bases de datos de las instancias configuradas.
  • Create agent per database: Habilitar este token para generar un agente por cada base de datos generada.

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

  • Check engine uptime:uptime: IfSi enabledse itactiva willmonitorizará monitor theel uptime ofde thelos targets.
    objetivos.
  • Retrieve query statistics: IfSi enabledse itactiva willmonitorizará monitorlas queryestadísticas statistics.
    de consultas.
  • Analyze connections:connections: IfSi enabled,se itactiva willmonitorizará monitorlas connections.
    conexiones.
  • Retrieve latency statistics:statistics: IfSi enabled,se itactiva willmonitorizará monitorla latency.
    latencia.
  • Retrieve network statistics:statistics: IfSi enabled,se itactiva willmonitorizará monitorlas theredes.
  • networks.

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

Por ultimo, se podrá configurar consultas personalizadas en el ultimo paso de la tarea (opcional).

  • Execute custom queries: IfSi activatedse youactiva willhabilitaras enablela theposibilidad possibilityde of executingejecutar custom queries.
  • Custom queries: ModulesEn canesta beventana specifiedse withpueden especificar los módulos personalizados con las custom queries.queries deseadas (ver apartado Parámetros para entender la sintaxis de configuración correcta)

image.pngCaptura desde 2026-02-04 14-16-07.png

TasksLas thattareas areque successfullyse completedcompleten willexitosamente havedispondrán ande executionun summarysumario withde theejecución followingcon information:la
siguiente información:

  • Total agents: Total agentsde generatedagentes bygenerados thepor task.
    la tarea.
  • Targets up:up: Total numberde ofobjetivos targetsa tolos whichque itha hassido beenposible possible to connect.
    conectar.
  • Targets down:down: Total numberde ofobjetivos targetsa tolos whichque itno hasha notsido beenposible possible to connect.conectar.

image.pngimage.png

Tasks

that

Las aretareas notque completedno successfullyse willcompleten haveexitósamente andispondrán executionde summaryun recordingsumario thede errorsejecución thatregistrando occurred.los errores producidos.