... Playbook #6

Unexpected Reboot of Server

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.

Execute uptime script
                              
sh /tmp/uptime.sh
                              
                            
Check if the last command cexecuted in last 10 minutes is reboot
                              
who -b
                              
                            
Check previous reboots of the system
                              
last -Fxn6 shutdown reboot
                              
                            
Check if the out of mwemory were logged
                              
grep -i "out of memory" /var/log/dmesg
                              
                            
Check if Kernel Panic were logged
                              
find /var/crash/ -type f -name 'vmcore-dmesg.txt' -exec grep -H 'Kernel panic' {} \\;