3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Check for zombie jobs (not terminated).
9 # Also scan logs for ERROR messages
14 # check_for_zombie_jobs storage=STORAGE [client=localhost-fd]
22 ${bin}/bconsole -c ${scripts}/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
23 @output ${tmp}/dir.out
34 grep "No Jobs running." ${tmp}/dir.out 2>&1 >/dev/null
37 echo " !!!! Zombie Jobs in Director !!!!"
38 echo " !!!! Zombie Jobs in Director !!!!" >>test.out
39 if test "$debug" = "1" ; then cat ${tmp}/dir.out; fi
44 grep "No Jobs running." ${tmp}/fd.out 2>&1 >/dev/null
47 echo " !!!! Zombie Jobs in File daemon !!!!"
48 echo " !!!! Zombie Jobs in File daemon !!!!" >>test.out
49 if test "$debug" = "1" ; then cat ${tmp}/fd.out; fi
54 grep "No Jobs running." ${tmp}/sd.out 2>&1 >/dev/null
57 echo " !!!! Zombie Jobs in Storage daemon !!!!"
58 echo " !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
59 if test "$debug" = "1" ; then cat ${tmp}/sd.out; fi
64 grep " READ " ${tmp}/sd.out 2>&1 >/dev/null
67 echo " !!!! Zombie \"Read\" Jobs in Storage daemon !!!!"
68 echo " !!!! Zombie \"Read\" Jobs in Storage daemon !!!!" >>test.out
69 if test "$debug" = "1" ; then cat ${tmp}/sd.out; fi
74 grep "ERROR" ${tmp}/log*.out 2>&1 >/dev/null
77 echo " !!!! ERROR in log output !!!!"
78 echo " !!!! ERROR in log output !!!!" >>test.out
79 grep "ERROR" ${tmp}/log*.out
84 grep "Fatal Error" ${tmp}/log*.out 2>&1 >/dev/null
87 echo " !!!! Fatal Error in log output !!!!"
88 echo " !!!! Fatal Error in log output !!!!" >>test.out
89 grep "Fatal Error" ${tmp}/log*.out
95 grep "glibc detected" ${tmp}/log*.out 2>&1 >/dev/null
98 echo " !!!! glibc detected Error in log output !!!!"
99 echo " !!!! glibc detected Error in log output !!!!" >>test.out
100 grep "glibc detected" ${tmp}/log*.out