[SERVER-3641] support mongostat through mongos with authentication Created: 17/Aug/11  Updated: 11/Jul/16  Resolved: 25/Oct/11

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.0.3, 2.1.0

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Brandon Diamond
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-5473 mongostat throws an error when connec... Closed
is related to SERVER-3619 mongostat can't authenticate to mongo... Closed
Operating System: ALL
Participants:

 Comments   
Comment by auto [ 22/Dec/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-3641 SERVER-1458: mongostat uses auth with mongos/repsets
Branch: v2.0
https://github.com/mongodb/mongo/commit/53bc8fe36122e83157d0840241d24b1f5d69c2ba

Comment by Ultrabug [ 17/Nov/11 ]

Any possible backport to 2.0 branch please ? this is handy and needed, thanks !

Comment by ganesan pandurangan [ 08/Nov/11 ]

git version: 4957a9cf01b4acf6c3eacf49dff3e8c7eae60fc3

Comment by Brandon Diamond [ 24/Oct/11 ]

mongostat will now utilize authentication when interrogating either a sharded cluster or a replica set (using --discover).

Importantly, you must be able to resolve the hostnames in your shard/replica set from the machine on which mongostat is run.

Should mongostat report "serverStatus failed" for any discovered node, you must login to that node and add the same credentials used elsewhere with db.addUser from within the admin database. You may see that message for other reasons as well; for instance, if the node is an arbiter. This shouldn't be a problem.

Please let me know if there are any issues and I'll re-open.

Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-3641 SERVER-1458: mongostat uses auth with mongos/repsets
Branch: master
https://github.com/mongodb/mongo/commit/362c151dacda419a1c94c73ad89599e55b7bad3c

Generated at Thu Feb 08 03:03:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.