|
| 1 | +.. _mcli-cm-monitoring-stop-command: |
| 2 | + |
| 3 | +====================================== |
| 4 | +mongocli cloud-manager monitoring stop |
| 5 | +====================================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +The ``monitoring stop`` command stops the {+mdbagent+} from monitoring |
| 16 | +the host that you specify. You can also stop Monitoring for one host in |
| 17 | +|cloud-short| using the :cloudmgr:`UI |
| 18 | +</tutorial/mongodb-agent-functions/#deactivate-monitoring>` and |
| 19 | +:cloudmgr:`API </reference/api/hosts/delete-one-host/>`. |
| 20 | + |
| 21 | +You must have :cloudmgr:`Project Monitoring Admin |
| 22 | +</reference/user-roles/#Project-Monitoring-Admin>` or :cloudmgr:`Project |
| 23 | +Owner </reference/user-roles/#Project-Owner>` role to stop the |
| 24 | +{+mdbagent+} from monitoring a host. |
| 25 | + |
| 26 | +.. _mcli-cm-monitoring-stop-syntax: |
| 27 | + |
| 28 | +Syntax |
| 29 | +------ |
| 30 | + |
| 31 | +.. code-block:: sh |
| 32 | + |
| 33 | + mongocli cloud-manager|cm monitoring stop <hostId> |
| 34 | + [ --force ] |
| 35 | + [ --profile|-P <profile-name> ] |
| 36 | + [ --projectId <project-ID> ] |
| 37 | + |
| 38 | +.. _mcli-cm-monitoring-stop-arguments: |
| 39 | + |
| 40 | +Arguments |
| 41 | +--------- |
| 42 | + |
| 43 | +.. list-table:: |
| 44 | + :header-rows: 1 |
| 45 | + :widths: 20 10 60 10 |
| 46 | + |
| 47 | + * - Option |
| 48 | + - Type |
| 49 | + - Description |
| 50 | + - Required? |
| 51 | + |
| 52 | + * - ``<hostId>`` |
| 53 | + - string |
| 54 | + - Unique identifier of the host you want to stop monitoring. |
| 55 | + |
| 56 | + Use the :ref:`mcli-cm-process-list-cmd` command to retrieve |
| 57 | + unique identifiers for your hosts. |
| 58 | + |
| 59 | + - yes |
| 60 | + |
| 61 | +.. _mcli-cm-monitoring-stop-options: |
| 62 | + |
| 63 | +Options |
| 64 | +------- |
| 65 | +.. list-table:: |
| 66 | + :header-rows: 1 |
| 67 | + :widths: 20 10 60 10 |
| 68 | + |
| 69 | + * - Option |
| 70 | + - Type |
| 71 | + - Description |
| 72 | + - Required? |
| 73 | + |
| 74 | + * - ``--force`` |
| 75 | + - |
| 76 | + - Bypasses the confirmation prompt. |
| 77 | + - no |
| 78 | + |
| 79 | + * - ``--profile``, ``-P`` |
| 80 | + - string |
| 81 | + - Name of the profile where the public and private |
| 82 | + keys for the project are saved. If omitted, uses the |
| 83 | + {+default-profile+}. To learn more about creating a |
| 84 | + profile, see :ref:`mcli-configure`. |
| 85 | + - no |
| 86 | + |
| 87 | + * - ``--projectId`` |
| 88 | + - string |
| 89 | + - Unique identifier of the project. If omitted, uses the |
| 90 | + project ID in the profile or :ref:`environment variable |
| 91 | + <mcli-env-var>`. |
| 92 | + - no |
| 93 | + |
| 94 | +.. _mcli-cm-monitoring-stop-output: |
| 95 | + |
| 96 | +Output |
| 97 | +------ |
| 98 | + |
| 99 | +The command prints the following field to the terminal if |
| 100 | +the command succeeds. If the command prints an error, see |
| 101 | +:ref:`Troubleshooting <mcli-troubleshooting>` for recommended |
| 102 | +solutions. |
| 103 | + |
| 104 | +.. code-block:: none |
| 105 | + :copyable: false |
| 106 | + |
| 107 | + Stopped monitoring '<hostId>' |
| 108 | + |
| 109 | +.. _mcli-cm-monitoring-stop-egs: |
| 110 | + |
| 111 | +Example |
| 112 | +------- |
| 113 | + |
| 114 | +The following command uses the ``mongocli cloud-manager monitoring stop`` |
| 115 | +command to stop the {+mdbagent+} from monitoring one host. |
| 116 | +It uses the default profile to access |cloud-short|. |
| 117 | + |
| 118 | +.. code-block:: sh |
| 119 | + |
| 120 | + mongocli cloud-manager monitoring stop 5c8100bcf2a30b12ff88258f |
| 121 | + Are you sure you want to delete: 5c8100bcf2a30b12ff88258f Yes |
| 122 | + |
| 123 | +The previous command prints the following to the terminal. |
| 124 | + |
| 125 | +.. code-block:: sh |
| 126 | + :copyable: false |
| 127 | + |
| 128 | + Stopped monitoring '5c8100bcf2a30b12ff88258f' |
0 commit comments