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/
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
Mongodbtargettargets to monitor by the task. It will be a listinstances, separated by commas or new lines.EachYoutargetmustdatabasespecifycan be defined by adding its name. Uri– Standard MongoDBthe connection URItoforconnecteachtoone.aExample:MongoDBmongodb://172.17.0.2:27017databaseorservermongodb://monitor_user:s3cur3P@[email protected]:27017/monitoring?authSource=admin.
It
You can also possible to adjust the task configurationsettings to customize the desiredmonitoring monitoring:as desired:
- Max threads:
toParaoptimizeoptimizarexecutioneltime,tiempomultipledethreadsejecución,maysebepodránconfiguredconfigurartomúltiplesmonitorhilostheparataskmonitorizaragents.losNoteagentesthatdeconfiguringlamultipletarea.threadsHaymayqueincreasetenertheentaskcuenta que configurar múltiples hilos puede aumentar el uso de CPUusage.
de la tarea. - Target agent:
ListListaofdetargetagentesagentsobjetivo 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:MongoDBHabilitartargetsestetotokenmonitor.paraThatpoderis,especificartheunnamesprefijowithcustomizadowhichparathelosagentsagentesof 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
moduleprefixprefix:for agents: PrefijoTextparaincludedlosasagentes de base de datos creados. - Use prefix for
allmodules:theHabilitargeneratedestemoduletokennames.paraItpoderisespecificarusefuluntoprefijolocatecustomizadotheparamoduleslosgeneratedmodulosbycreados. - Custom
taskprefixorfortomodules:distinguishPrefijothemparafromlosothers.
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.
- Check engine
uptime:uptime:IfSienabledseitactivawillmonitorizarámonitor theel uptimeofdethelostargets.
objetivos. - Retrieve query statistics:
IfSienabledseitactivawillmonitorizarámonitorlasqueryestadísticasstatistics.
de consultas. - Analyze
connections:connections:IfSienabled,seitactivawillmonitorizarámonitorlasconnections.
conexiones. - Retrieve latency
statistics:statistics:IfSienabled,seitactivawillmonitorizarámonitorlalatency.
latencia. - Retrieve network
statistics:statistics:IfSienabled,seitactivawillmonitorizarámonitorlastheredes.
Por ultimo, se podrá configurar consultas personalizadas en el ultimo paso de la tarea (opcional).
- Execute custom queries:
IfSiactivatedseyouactivawillhabilitarasenablelatheposibilidadpossibilitydeof executingejecutar custom queries. - Custom queries:
ModulesEncanestabeventanaspecifiedsewithpueden especificar los módulos personalizados con las customqueries.queries deseadas (ver apartado Parámetros para entender la sintaxis de configuración correcta)
TasksLas thattareas areque successfullyse completedcompleten willexitosamente havedispondrán ande executionun summarysumario withde theejecución followingcon information:la
siguiente información:
- Total agents: Total
agentsdegeneratedagentesbygeneradostheportask.
la tarea. - Targets
up:up: Totalnumberdeofobjetivostargetsatoloswhichqueithahassidobeenposiblepossible to connect.
conectar. - Targets
down:down: Totalnumberdeofobjetivostargetsatoloswhichqueitnohashanotsidobeenposiblepossible to connect.conectar.
Tasks
Las aretareas notque completedno successfullyse willcompleten haveexitósamente andispondrán executionde summaryun recordingsumario thede errorsejecución thatregistrando occurred.los errores producidos.









