3 # Check for zombie jobs (not terminated).
4 # Also scan logs for ERROR messages
9 # check_for_zombie_jobs storage=STORAGE [client=localhost-fd]
17 ${bin}/bconsole -c ${scripts}/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
18 @output ${tmp}/dir.out
29 grep "No Jobs running." ${tmp}/dir.out 2>&1 >/dev/null
32 echo " !!!! Zombie Jobs in Director !!!!"
33 echo " !!!! Zombie Jobs in Director !!!!" >>test.out
39 grep "No Jobs running." ${tmp}/fd.out 2>&1 >/dev/null
42 echo " !!!! Zombie Jobs in File daemon !!!!"
43 echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out
49 grep "No Jobs running." ${tmp}/sd.out 2>&1 >/dev/null
52 echo " !!!! Zombie Jobs in Storage daemon !!!!"
53 echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
59 grep "ERROR" ${tmp}/log*.out 2>&1 >/dev/null
62 echo " !!!! ERROR in log output !!!!"
63 echo " !!!! ERROR in log output !!!!" >>test.out
64 grep "ERROR" ${tmp}/log*.out
69 grep "Fatal Error" ${tmp}/log*.out 2>&1 >/dev/null
72 echo " !!!! Fatal Error in log output !!!!"
73 echo " !!!! Fatal Error in log output !!!!" >>test.out
74 grep "Fatal Error" ${tmp}/log*.out
80 grep "glibc detected" ${tmp}/log*.out 2>&1 >/dev/null
83 echo " !!!! glibc detected Error in log output !!!!"
84 echo " !!!! glibc detected Error in log output !!!!" >>test.out
85 grep "glibc detected" ${tmp}/log*.out