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
26 grep "No Jobs running." tmp/dir.out 2>&1 >/dev/null
29 echo " !!!! Zombie Jobs in Director !!!!"
30 echo " !!!! Zombie Jobs in Director !!!!" >>test.out
34 grep "No Jobs running." tmp/fd.out 2>&1 >/dev/null
37 echo " !!!! Zombie Jobs in File daemon !!!!"
38 echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out
42 grep "No Jobs running." tmp/sd.out 2>&1 >/dev/null
45 echo " !!!! Zombie Jobs in Storage daemon !!!!"
46 echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
50 grep "ERROR" tmp/log*.out 2>&1 >/dev/null
53 echo " !!!! ERROR in log output !!!!"
54 echo " !!!! ERROR in log output !!!!" >>test.out
58 grep "Fatal Error" tmp/log*.out 2>&1 >/dev/null
61 echo " !!!! Fatal Error in log output !!!!"
62 echo " !!!! Fatal Error in log output !!!!" >>test.out
67 grep "glibc detected" tmp/log*.out 2>&1 >/dev/null
70 echo " !!!! glibc detected Error in log output !!!!"
71 echo " !!!! glibc detected Error in log output !!!!" >>test.out