We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f047ede commit 89f4dbcCopy full SHA for 89f4dbc
lib/sensu-plugins-mongodb/metics.rb
@@ -376,6 +376,7 @@ def get_mongo_client(db_name)
376
address_str = "#{host}:#{port}"
377
client_opts = {}
378
client_opts[:database] = db_name
379
+ client_opts[:connect] = :direct
380
unless db_user.nil?
381
client_opts[:user] = db_user
382
client_opts[:password] = db_password
0 commit comments