Minimum permissions to run rs.printSlaveReplicationInfo

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hey Guys

      I would like to write a script that collects stats about the replication lag on our nodes. It looks like I can get that information with rs.printSlaveReplicationInfo() and db.printSlaveReplicationInfo(). However I can't seem to find what permissions / privileges I need to grant a user to allow him to be able to run this command.

      I looked on the page:
      https://docs.mongodb.com/manual/reference/privilege-actions/
      and have already tried the following with no luck:

      • hostInfo
      • replSetGetStatus

      Thanks.

            Assignee:
            Unassigned
            Reporter:
            asdf01
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: