-
Notifications
You must be signed in to change notification settings - Fork 273
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
General MongoDB Error: name must be an instance of basestring #232
Comments
This doesn't happen when run against a primary, which returns: "OK - This is the primary.", but only against a secondary node. |
Confirming this one
|
Hi, I have the same issue but as i'm running mongodb 3.0, the problem happens here :
None, None means replicaset=None, authdb=None. This is not valid as you must supply a valid database name to authenticate. A correct call is :
but you have to change the prototype of function check_rep_lag
with
Hope this help |
Same issue. |
I've created a pull request which solves this issue. See #245 |
I have the same. |
Running the following command:
/usr/lib64/nagios/plugins/check_mongodb.py -H mongo-2 -P 10000 -D -A replication_lag_percent -u *** -p *** -W 50 -C 75
Returns:
CRITICAL - General MongoDB Error: name must be an instance of basestring
The text was updated successfully, but these errors were encountered: