mirror of https://github.com/shunfei/cronsun
more clearly email message
parent
f2e38132e0
commit
a4e1a0cdec
|
@ -186,8 +186,9 @@ func monitorNodes(n Noticer) {
|
||||||
|
|
||||||
if node.Alived {
|
if node.Alived {
|
||||||
n.Send(&Message{
|
n.Send(&Message{
|
||||||
Subject: fmt.Sprintf("Node[%s] break away cluster at %s", node.Hostname, time.Now().Format(time.RFC3339)),
|
Subject: fmt.Sprintf("[Cronsun Warning] Node[%s] break away cluster at %s",
|
||||||
Body: fmt.Sprintf("Node breaked away cluster, this might happened when node crash or network problems.\nUUID: %s\nHostname: %s\nIP: %s\n", id, node.Hostname, node.IP),
|
node.Hostname, time.Now().Format(time.RFC3339)),
|
||||||
|
Body: fmt.Sprintf("Cronsun Node breaked away cluster, this might happened when node crash or network problems.\nUUID: %s\nHostname: %s\nIP: %s\n", id, node.Hostname, node.IP),
|
||||||
To: conf.Config.Mail.To,
|
To: conf.Config.Mail.To,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue