Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25626

Minimum permissions to run rs.printSlaveReplicationInfo

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            michael.qiu@wdtl.com asdf01
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: