MongoDB FieldPack authentication error shared mode

Discussion created by afiorentini on Apr 13, 2017
Latest reply on May 3, 2017 by Hallett_German

Hi Community


I'm trying to connect to MongoDB sharding cluster using ca-apm-fieldpack-mongodb 1.1 but I have an error about "auth failed" "code 18":


Apr 12, 2017 7:43:47 PM main

INFO: APM MongoDB Collector version: 1.1

Apr 12, 2017 7:43:47 PM discoverTopology

INFO: Discovering Topology for host:,017

Apr 12, 2017 7:43:48 PM <init>

WARNING: Exception discovering topology:

com.mongodb.CommandFailureException: { "serverUsed" : "" , "ok" : 0.0 , "errmsg" : "auth failed" , "code" : 18}

                at com.mongodb.CommandResult.getException(

                at com.mongodb.CommandResult.throwOnError(

                at com.mongodb.DBPort$NativeAuthenticator.authenticate(


But when I tried to connect using another tool for example Mongo Cheff the tool ask me for an additional parameter "authentication DB":



It's possible set authentication DB on FieldPack ? 


If I don't set "authentication DB" on MongoCheff get the same fieldpack error: auth failed: code 18.




Aldo Fiorentini.