Skip to content
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

MongoDB input does not report TLS certificate errors #4064

Closed
danielnelson opened this issue Apr 23, 2018 · 0 comments · Fixed by #4066
Closed

MongoDB input does not report TLS certificate errors #4064

danielnelson opened this issue Apr 23, 2018 · 0 comments · Fixed by #4066
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@danielnelson
Copy link
Contributor

Bug report

Relevant telegraf.conf:

[[inputs.mongodb]]
  servers = ["$MONGODB_URL"]
  gather_perdb_stats = false
  ## Optional SSL Config
  ssl_ca = "/ssl/mongodb/ca.pem"
  ssl_cert = "/ssl/mongodb/cert.pem"
  ssl_key = "/ssl/mongodb/key.pem"
  insecure_skip_verify = true

System info:

1.6.0

Steps to reproduce:

  1. Provide certificate that cannot be loaded
  2. telegraf --input-filter mongodb --test

Expected behavior:

Error indicating the certificate could to be loaded.

Actual behavior:

Falls back to non-TLS connection

E! Error in plugin [inputs.mongodb]: Unable to connect to MongoDB, no reachable servers

Additional info:

MongoDB server says:

I -        [conn380] AssertionException handling request, closing client connection: 17189 The server is configured to only allow SSL connections
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Apr 23, 2018
@danielnelson danielnelson added this to the 1.6.1 milestone Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant