apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.12k stars 897 forks source link

[Task] <support monitoring smtp email server metrics> #1395

Open tomsun28 opened 6 months ago

tomsun28 commented 6 months ago

Description

support monitoring smtp email server metrics, available, responseTime

Task List

ZY945 commented 6 months ago

Do you mean monitoring Postfix? Perhaps by monitoring the log files,

/var/log/maillog
tomsun28 commented 6 months ago

hi @ZY945 , we can use the smtp transmission protocol, send a smtp protocol package and receive the response data from smtp server. Collect the metrics data and whether is available based on the response packets.

https://blog.mystrika.com/smtp-helo/ https://www.samlogic.net/articles/smtp-commands-reference.htm Detail, suggest send a hello smtp message and receive the response data from smtp server.

ZY945 commented 6 months ago

Thanks,I understand the general idea that after reviewing the document, it is to connect to the SMTP server through telnet, and then obtain the response and analyze it through commands such as HELO

ZY945 commented 6 months ago

Thanks,I understand the general idea that after reviewing the document, it is to connect to the SMTP server through telnet, and then obtain the response and analyze it through commands such as HELO

or use some SMTP library image

tomsun28 commented 6 months ago

Thanks,I understand the general idea that after reviewing the document, it is to connect to the SMTP server through telnet, and then obtain the response and analyze it through commands such as HELO

or use some SMTP library

use java smtp library is better.

ZY945 commented 6 months ago

Thanks,I understand the general idea that after reviewing the document, it is to connect to the SMTP server through telnet, and then obtain the response and analyze it through commands such as HELO

or use some SMTP library

use java smtp library is better. Is this okay image

ZY945 commented 6 months ago

image

ZY945 commented 6 months ago

Is this example okay image

tomsun28 commented 6 months ago

yes it isπŸ‘πŸ‘