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
27 grep "No Jobs running." tmp/dir.out 2>&1 >/dev/null
30 echo " !!!! Zombie Jobs in Director !!!!"
31 echo " !!!! Zombie Jobs in Director !!!!" >>test.out
36 grep "No Jobs running." tmp/fd.out 2>&1 >/dev/null
39 echo " !!!! Zombie Jobs in File daemon !!!!"
40 echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out
45 grep "No Jobs running." tmp/sd.out 2>&1 >/dev/null
48 echo " !!!! Zombie Jobs in Storage daemon !!!!"
49 echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
54 grep "ERROR" tmp/log*.out 2>&1 >/dev/null
57 echo " !!!! ERROR in log output !!!!"
58 echo " !!!! ERROR in log output !!!!" >>test.out
59 grep "ERROR" tmp/log*.out
64 grep "Fatal Error" tmp/log*.out 2>&1 >/dev/null
67 echo " !!!! Fatal Error in log output !!!!"
68 echo " !!!! Fatal Error in log output !!!!" >>test.out
69 grep "Fatal Error" tmp/log*.out
75 grep "glibc detected" tmp/log*.out 2>&1 >/dev/null
78 echo " !!!! glibc detected Error in log output !!!!"
79 echo " !!!! glibc detected Error in log output !!!!" >>test.out
80 grep "glibc detected" tmp/log*.out