An unexpected server reboot can disrupt services and risk data loss or corruption. This playbook aids in pinpointing the cause of the reboot, enabling fixes to address underlying issues and prevent future disruption.
sh /tmp/uptime.sh
who -b
last -Fxn6 shutdown reboot
grep -i "out of memory" /var/log/dmesg
find /var/crash/ -type f -name 'vmcore-dmesg.txt' -exec grep -H 'Kernel panic' {} \\;