---
sourceDocument: Brazil IT Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-operations-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# mongod DB

# mongod DB pattern-based discovery {#ariaid-title1}

Release version: Brazil  
Updated November 3, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
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 {#mongod-db-pattern__id_parent_topic}

Visit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) 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](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html).{#mongod-db-pattern__inline-send-to-store}
For information on probe-based MongoDB discovery, see [MongoDB probe-based discovery](https://www.servicenow.com/docs/81op9I7lxD9luWPq~s_fRA "Discovery creates or updates a CMDB record when it detects a running instance of MongoDB.").

## Prerequisites {#mongod-db-pattern__section_prerequisites}

Verify that the applications are up to date
:
    * Discovery and Service Mapping Patterns
    * Visibility Content
    * CMDB CI Class Models
    {#mongod-db-pattern__ul_apps}

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`
    {#mongod-db-pattern__ul_version_cmds}

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`
    {#mongod-db-pattern__ul_dbname_cmds}

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:

    * For UNIX, see [SSH credentials](https://www.servicenow.com/docs/access?context=r_SSHCredentialsForm&version=brazil&pubname=brazil-platform-security&ft:locale=en-US)
    * For Windows, see [Windows credentials](https://www.servicenow.com/docs/access?context=r_WindowsCredentialsForm&version=brazil&pubname=brazil-platform-security&ft:locale=en-US)
    {#mongod-db-pattern__ul_c3z_czp_clc}

Schedule a horizontal discovery
:   For more information, see [Schedule a horizontal discovery](https://www.servicenow.com/docs/A3BVdNwrtvD7FvMzmPuJVA#t_CreateADiscoverySchedule "A discovery schedule determines what horizontal discovery searches for, when it runs, and which MID Servers are used. Create a discovery schedule for your local environment or a schedule for discovering the resources in your cloud service account.").

## Data collected by Discovery during horizontal discovery {#mongod-db-pattern__section_data_collected}

Discovery populates the data in the CMDB when running the mongod DB pattern.  
{#mongod-db-pattern__table_mongo_config_serv__entry__2}

| 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. {#mongod-db-pattern__ul_discovery_source} |
[Table 1. Mongo Config Server \[cmdb_ci_appl_mongo_config_serv\]]

{#mongod-db-pattern__table_mongo_config_serv}

