Hi, my mongodb has authentication enabled and it seems that the
db._adminCommand({serverStatus : 1}); in the script is designed to be run unauthenticated.
{ “ok” : 0, “errmsg” : “not authorized on admin to execute command { serverStatus: 1.0 }”, “code” : 13 } Can anyone suggest how this monitoring is supposed to work when a mongodb that has authentication enabled?
Thanks
R