mongodb get status

JavaScript
db.runCommand( { serverStatus: 1 } )

Source

Also in JavaScript: