3 # Check for zombie jobs (not terminated).
4 # Also scan logs for ERROR messages
7 # check_for_zombie_jobs storage=STORAGE [client=localhost-fd]
15 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
25 grep "No Jobs running." tmp/dir.out 2>&1 >/dev/null
28 echo " !!!! Zombie Jobs in Director !!!!"
29 echo " !!!! Zombie Jobs in Director !!!!" >>test.out
32 grep "No Jobs running." tmp/fd.out 2>&1 >/dev/null
35 echo " !!!! Zombie Jobs in File daemon !!!!"
36 echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out
39 grep "No Jobs running." tmp/sd.out 2>&1 >/dev/null
42 echo " !!!! Zombie Jobs in Storage daemon !!!!"
43 echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
46 grep "ERROR" tmp/log*.out 2>&1 >/dev/null
49 echo " !!!! ERROR in log output !!!!"
50 echo " !!!! ERROR in log output !!!!" >>test.out
53 grep "Fatal Error" tmp/log*.out 2>&1 >/dev/null
56 echo " !!!! Fatal Error in log output !!!!"
57 echo " !!!! Fatal Error in log output !!!!" >>test.out
61 grep "glibc detected" tmp/log*.out 2>&1 >/dev/null
64 echo " !!!! glibc detected Error in log output !!!!"
65 echo " !!!! glibc detected Error in log output !!!!" >>test.out