more clearly email message

pull/107/head
QLeelulu 6 years ago committed by Doflatango
parent f2e38132e0
commit a4e1a0cdec

@ -186,9 +186,10 @@ func monitorNodes(n Noticer) {
if node.Alived {
n.Send(&Message{
Subject: fmt.Sprintf("Node[%s] break away cluster at %s", node.Hostname, time.Now().Format(time.RFC3339)),
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),
To: conf.Config.Mail.To,
Subject: fmt.Sprintf("[Cronsun Warning] Node[%s] break away cluster at %s",
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,
})
}
}

Loading…
Cancel
Save