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

<database>.sytem.namespaces deprecated in mongo 4.2+ #251

Open
kwisatz opened this issue Jan 5, 2021 · 2 comments
Open

<database>.sytem.namespaces deprecated in mongo 4.2+ #251

kwisatz opened this issue Jan 5, 2021 · 2 comments

Comments

@kwisatz
Copy link

kwisatz commented Jan 5, 2021

The replication lag check for instance tries to run a find query on local.system.namespaces which mongo answers with

  "errmsg" : "not authorized on local to execute command { find: \"system.namespaces\", filter: {}, …

The problem is most likely not authorization though, but deprecation (CMIIW).
See https://docs.mongodb.com/manual/reference/system-collections/#%3Cdatabase%3E.system.namespaces

The find query should be replaced by a call to listCollections which is covered by the clusterMonitor role.

@joekinley
Copy link

Running into this myself, and it is quite annoying. Any plans to fix this?

@joekinley
Copy link

Okay, for anyone stumbling over this, there is a PR that fixes this issue (https://github.com/mzupan/nagios-plugin-mongodb/pull/247/files), which I tried, and can confirm that it works.

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

2 participants