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.

Reply via email to