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.16k stars 903 forks source link

ssl alert does not display the specific domain name #1479

Open codech opened 5 months ago

codech commented 5 months ago

Is there an existing issue for this?

Current Behavior

ssl alert没有显示具体的域名

Expected Behavior

[HertzBeat Alert Notify] Monitor Target : availability Monitor ID : 331873380587776 Alert Priority : Emergency Alert Alert Trigger Time : 2024-01-10 06:38:53 Alert Content : ssl_cert monitoring availability alert, code is UN_CONNECTABLEConsole Login

Steps To Reproduce

No response

Environment

v1.4.3

Debug logs

No response

Anything else?

No response

tomsun28 commented 5 months ago

we can add Monitor Name

hertzbeat commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


we can add Monitor Name

kurayami07734 commented 5 months ago

May I work on this?

tomsun28 commented 5 months ago

Hi you can, 👍👍you are very welcome. I see that this issue has been partially fixed in PR https://github.com/dromara/hertzbeat/pull/1515, but the webhook notification template still does not support monitorHost. You can try to refer to this PR and add monitorHost to the webhook notification template.
https://github.com/dromara/hertzbeat/blob/master/manager/src/main/resources/templates/2-WebhookTemplate.txt