Not the answer you need?
Register and ask your own question!

mongodb cacti monitoring script fails when db auth is enabled

rossdrossd EntrantCurrent User Role Beginner
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
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.