[inputs.x509_cert] Error in plugin: cannot get SSL cert

Installed Packages
Name : telegraf
Version : 1.23.3

try next settings:

[[inputs.x509_cert]]
sources = [“smtp://192.168.1.14:25”]
insecure_skip_verify = true

error:
[inputs.x509_cert] Error in plugin: cannot get SSL cert ‘smtp://192.168.1.14:25’: unsupported scheme ‘smtp’ in location smtp://192.168.1.14:25

try change to tcp://
error:
[inputs.x509_cert] Error in plugin: cannot get SSL cert ‘tcp://192.168.1.14:25’: tls: first record does not look like a TLS handshake

on the remote host 192.168.1.14:25 Postfix

Any idea?

Looks l ike you are trying to connect to an SMTP server to verify it’s SSL certificate? Generally, SMTP with SSL uses port 587, or maybe the older 465.