check status of mongodb code example Example: mongodb get status db.runCommand( { serverStatus: 1 } )