Yes, that should work. If you have trouble, open(curl) the scrape URL but add &debug=true to see what happens.
/MR On Wed, May 18, 2022, 12:34 nina guo <[email protected]> wrote: > Hi, > > Can I use the following mode to implement Nagios check_smtp? > > smtp_starttls: > > prober: tcp > > timeout: 5s > > tcp: > > query_response: > > - expect: "^220 ([^ ]+) ESMTP (.+)$" > > - send: "EHLO prober\r" > > - expect: "^250-STARTTLS" > > - send: "STARTTLS\r" > > - expect: "^220" > > - starttls: true > > - send: "EHLO prober\r" > > - expect: "^250-AUTH" > > - send: "QUIT\r" > > smtp_starttls: > > prober: tcp > > timeout: 5s > > tcp: > > query_response: > > - expect: "^220 ([^ ]+) ESMTP (.+)$" > > - send: "EHLO prober\r" > > - expect: "^250-STARTTLS" > > - send: "STARTTLS\r" > > - expect: "^220" > > - starttls: true > > - send: "EHLO prober\r" > > - expect: "^250-AUTH" > > - send: "QUIT\r" > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/22fa8e2d-dd7f-4a02-8c26-efb1b12824edn%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/22fa8e2d-dd7f-4a02-8c26-efb1b12824edn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAMV%3D_gZGNr1x1E8jqK%3D-1nzEPg%3Dy-TOkkm1LgR8gtK4Zhmpe6Q%40mail.gmail.com.

