We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The replication lag check for instance tries to run a find query on local.system.namespaces which mongo answers with
local.system.namespaces
"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.
listCollections
clusterMonitor
The text was updated successfully, but these errors were encountered:
Running into this myself, and it is quite annoying. Any plans to fix this?
Sorry, something went wrong.
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.
No branches or pull requests
The replication lag check for instance tries to run a find query on
local.system.namespaces
which mongo answers withThe 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 theclusterMonitor
role.The text was updated successfully, but these errors were encountered: