mongod DB pattern-based discovery

reference brazil Updated Nov 3, 2026 2 min read mongod-db-pattern.md
Raw file servicenow.com

Discovery and Service Mapping Patterns uses the mongod DB pattern to find MongoDB servers that run the mongod process on UNIX and Windows servers. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

Request apps on the Store

Visit the ServiceNow Store to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.

For information on probe-based MongoDB discovery, see MongoDB probe-based discovery.

Prerequisites

  • Verify that the applications are up to date

    • Discovery and Service Mapping Patterns
    • Visibility Content
    • CMDB CI Class Models
  • Verify permission to run the version commands

    Verify you have permission for the following commands:

    • <mongod_install_directory>/mongod --version
    • On Windows servers: <mongod_install_directory>\mongod.exe --version
    • If the version isn't found: <mongod_install_directory>/mongo --version
  • Verify permission to run the database name command

    Verify you have permission for the following commands:

    • echo 'db.getName()' | <mongod_install_directory>/mongo
    • On Windows servers: echo 'db.getName()' | <mongod_install_directory>\mongo.exe
  • Verify read access to the MongoDB configuration file

    Verify you have read access to the configuration file that is specified by the --config or -f option of the mongod process.

  • Create credentials for the operating system

    Create credentials for the operating system of the servers you want to discover:

  • Schedule a horizontal discovery

    For more information, see Schedule a horizontal discovery.

Data collected by Discovery during horizontal discovery

Discovery populates the data in the CMDB when running the mongod DB pattern.

Field

Description

Name [name]

Name of the MongoDB database. If the name isn't available, the value is set to Mongo DB.

Port [port]

Port on which the MongoDB server listens.

Version [version]

Version of MongoDB.

Installation directory [install_directory]

Directory in which MongoDB is installed.

Configuration file [config_file]

Path to the MongoDB configuration file.

Running process command [running_process_command]

Command of the running MongoDB process.

Running process key parameters [running_process_key_parameters]

Key parameters of the running MongoDB process.

Discovery source [discovery_source]

Source of discovery. The value depends on the mid.discovery_source_field_legacy.default MID Server property and is one of the following:- CredentiallessDiscovery: when the property is set to true, which is the default.

  • ServiceNow: when the property is set to false.
**Parent Topic:**[Available on-premise discovery patterns](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/discovery-and-service-mapping-patterns/available-patterns.md)
Keywords mongod DBMongoDBMongo Config Serverpattern discovery
Search documentation
Search document titles and file paths on the brazil branch