send email from host on host ECC report

diversity

Well-Known Member
Feb 19, 2020
249
15
58
55
I have a motherboard, CPU and memory on where single bit ECC detection, correction and reporting and multi bit detection and reporting is confirmed to be working.

what would be the most straightforward way to recieve an email when ever the OS receives an ECC report?
 
Do you know where the OS stores the ECC reports? Sending emails from command line (or a script) is easy as soon as a SMTP relay is setup.
You could for example write a script that monitors "/sys/devices/system/edac/mc/mc0/ce_count", "/sys/devices/system/edac/mc/mc0/ue_count" and so on and sends you an email if "ue_count" is not zero.
 
Last edited:
You proxmox server needs something like postfix or sendmail installed and configured to be able to send emails. Without that proxmox for example can't send backup reports and so on. If you aren't running a own mail server already I would recommend to setup postfix as a SMTP relay so an external SMTP server can be used to send emails.
After you setup your mail server you can send mails via CLI like this "mail -s "This is the subject" somebody@example.com <<< 'This is the message'" (needs mailutils package to be installed on debian/proxmox).
 
Last edited: