Cheat Sheets

System - No MCE logged

Description

There shall be no 'Machine check events' in /var/log/dmesg as they can indicate real hardware issues

Check Script: system-mce-logged.sh

#!/bin/bash

# solution: There is no real solution. But 'apt-get install mcelog && mcelog' can help to diagnose it. Clear dmesg buffer to acknowledge.

logged=$(/bin/dmesg | grep 'Machine check events logged' | tail -10) if [ "$logged" == "" ]; then result_ok else result_failed "dmesg has 'Machine check events logged' entries" fi
Comment on Disqus