Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb user permissions #114

Open
mblubb opened this issue Jan 22, 2014 · 3 comments
Open

mongodb user permissions #114

mblubb opened this issue Jan 22, 2014 · 3 comments

Comments

@mblubb
Copy link

mblubb commented Jan 22, 2014

Hello,

I'm currently trying to setup the plugin to monitor a mongodb cluster where auth is enabled. Here's my question. Can you provide the information what priviledges the mongodb user must have to get this working?

regards

@amirkibbar
Copy link

+1

@hdeheer
Copy link
Contributor

hdeheer commented May 20, 2014

We use auth as well and have created a separate monitor user with the following roles (note this is for mongo 2.4, in 2.6 the otherDBRoles has been changed:

'roles' : [ 'readAnyDatabase', 'clusterAdmin' ],
'otherDBRoles' : { 'nagios' : [ 'readWrite' ] }

Most monitors will function with this, except for the queries_per_second one, that one still throws General MongoDB Error: not authorized for update on local.nagios_check (see issue #115 )

@warrenpnz
Copy link
Contributor

In Mongo 2.4 you do need 'clusrterAdmin', however in 2.6+, you should be able to use 'clusterMonitor' role which is more secure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants