Skip to content

telegraf plugin x509_cert stopped working from 1.17.1 upwards with dial tcp: i/o timeout #8809

@lephisto

Description

@lephisto

Relevant telegraf.conf:

System info:

1.17.1 + 1.17.2

Docker

Steps to reproduce:

  1. Use x509_cert Plugin to verify SSL Certs
  2. Run telegraf with --test

Expected behavior:

telegraf retrieves ssl version information and performs a chain check:

x@odo:/etc/telegraf/telegraf.d# sudo telegraf --test --config certs.conf
2021-02-04T23:20:56Z I! Starting Telegraf 1.17.0
> x509_cert,common_name=testhost.net,host=odo,issuer_common_name=R3,public_key_algorithm=RSA,san=testhost.net,serial_number=40d124535dbdeb52a71517554264ddcb576,signature_algorithm=SHA256-RSA,source=https://testhost.net:443,verification=valid age=2271661i,enddate=1617985195i,expiry=5504338i,startdate=1610209195i,verification_code=0i 1612480857000000000

Actual behavior:

plugin fails with a dial tcp: i/o timeout error:

2021-02-04T23:20:12Z I! Starting Telegraf 1.17.1
2021-02-04T23:20:12Z E! [inputs.x509_cert] Error in plugin: cannot get SSL cert 'https://testhost.net:443': dial tcp: i/o timeout

Additional info:

Config:

[[inputs.x509_cert]]
  interval = "300s"

  ## List certificate sources
  sources = [
        "https://testhost.net:443"
  ]

Stopped working with 1.17.1 - after downgrade to 1.17.0 it's working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions