Cheat Sheets

System - No Segfaults

Description

There shall be no 'segfault at ' messages in dmesg

Check Script: system-segfaults.sh

#!/bin/bash

# solution: Solution always depends on the application. Clear dmesg buffer to acknowledge.

logged=$(/bin/dmesg | grep ': segfault at ' | tail -10) if [ "$logged" == "" ]; then result_ok else result_warning "$logged" fi
Comment on Disqus