Thank you very much.

On Wednesday, May 18, 2022 at 7:18:17 PM UTC+8 [email protected] wrote:

> 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/c23ea617-bc4b-4afb-9e58-4a38bef72fb7n%40googlegroups.com.

Reply via email to