Hi,

I'm using following module to monitor ssl cert, but failed following issue.

tcp_cert:
        prober: tcp
        timeout: 5s
        tcp:
          tls: true
          preferred_ip_protocol: "ip4"
          tls_config:
            insecure_skip_verify: true

curl -g 
'http://1.1.1.1:9115/probe?module=tcp_cert&target=dns:587&debug=true'
Logs for the probe:
ts=2022-08-09T01:23:27.020158973Z caller=main.go:320 module=tcp_cert 
target=dns:587 level=info msg="Beginning probe" probe=tcp timeout_seconds=5
ts=2022-08-09T01:23:27.020211226Z caller=tcp.go:40 module=tcp_cert 
target=dns:587 level=info msg="Resolving target address" ip_protocol=ip4
ts=2022-08-09T01:23:27.024779773Z caller=tcp.go:40 module=tcp_cert 
target=dns:587 level=info msg="Resolved target address" ip=2.2.2.2
ts=2022-08-09T01:23:27.024809314Z caller=tcp.go:121 module=tcp_cert 
target=dns:587 level=info msg="Dialing TCP with TLS"
ts=2022-08-09T01:23:27.02673954Z caller=main.go:130 module=tcp_cert 
target=dns:587 level=error msg="Error dialing TCP" err="tls: first record 
does not look like a TLS handshake"
ts=2022-08-09T01:23:27.026778527Z caller=main.go:320 module=tcp_cert 
target=dns:587 level=error msg="Probe failed" duration_seconds=0.00659328

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/cc2712cf-3845-4bb3-a6d0-d8085689da3cn%40googlegroups.com.

Reply via email to