 
 module.exports = (params = {}) ->
   config =
-    mongoDbs:         if params.mongoDbs?    then params.mongoDbs    else null
-    postgresDbs:      if params.postgresDbs? then params.postgresDbs else null
+    mongoDbs:               if params.mongoDbs?           then params.mongoDbs                  else null
+    postgresDbs:            if params.postgresDbs?        then params.postgresDbs               else null
+    elasticsearchClts:      if params.elasticsearchClts?  then params.params.elasticsearchClts  else null
 
   app = express()
   secondes = 0

          if promises[i] == 'mongo'
            databases = mongo
            j = 1
          else
            if result.isFulfilled()
              databases['database_' + j] = true
            else
              databases['database_' + j] = false
          i++
          j++

        answer['postgres'] = postgres
        answer['mongo'] = mongo
        res.send(answer)
    else
      res.send(answer)


    promises.push 'mongo'

    #Check mongoDb connections
    if config.mongoDbs
      mongoDbs = config.mongoDbs()
      for mongoDb in mongoDbs
        promises.push collectionNamesAsync(mongoDb)

    promises.push 'elasticsearch'

    #Check elasticsearch connections
    if config.elasticsearchClts
      elasticsearchClts = config.elasticsearchClts
      for elasticsearchClt in elasticsearchClts
        promises.push pingAsync(elasticsearchClt)

    if promises.length > 2
      Promise.settle(promises).then (results) ->
        mongo = {}
        postgres = {}
        elastic = {}
        databases = postgres
        i = 0
        j = 1
