Skip to content

MongoDB

Common parts of every card (states, backoff, Unit and ExecReload, Test config, manual commands) are described in Monitor window.

Detected by systemd units mongod, mongodb or binaries mongod
Read every 2 minutes while the Monitor window shows the tab
Active probe none
Test config none
Manual commands 1

MongoDB: mongod processes, the closed list of options of their argv, the YAML configuration filtered on the host to a closed list of keys, listeners of the port, disk use of dbPath and the version of the running binary. No active probe: the card shows a mongosh command to copy and run by hand; its answer never reaches KryoDesk.

None: KryoDesk has no configuration test for this service.

KryoDesk shows these with Copy / Paste to terminal and never runs them.

Label Command What it does
Replica set state (mongosh) mongosh --norc --quiet [--tls] 'mongodb://127.0.0.1:<port>/?directConnection=true&serverSelectionTimeoutMS=3000&connectTimeoutMS=3000&appName=kryodesk' --eval <script> --tls only with requireTLS; offered only for a trusted mongod with a known port (default 27017). The script prints of hello and of rs.status() each member’s name, stateStr, health and optimeDate. mongosh writes a log in ~/.mongodb/mongosh/ of the account that runs it, sends telemetry according to that account’s setting (disableTelemetry()), and mongod logs a “Connection accepted” entry; with authorization add -u <user> -p (mongosh asks for the password). The result stays in the terminal: KryoDesk never reads it

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close