Mongostat is failing

mongostat --port 30000
2019-02-18T19:14:13.921+0000 Failed: not authorized on admin to execute command { serverStatus: 1, recordStats: 0, $readPreference: { mode: “secondaryPreferred” }, $db: “admin” }

I don’t think mongostat is failing. It simply indicates that you are now authorized to perform the given action. You must authenticate, the link below will help you determine how to do it.

1 Like