# Check for zombie jobs (not terminated).
# Also scan logs for ERROR messages
#
+
+# check_for_zombie_jobs storage=STORAGE [client=localhost-fd]
+
+if [ $# = 2 ] ; then
+ client="$2"
+else
+ client="client"
+fi
+
bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
@output tmp/dir.out
status dir
@output tmp/fd.out
-status client
+status $client
@output tmp/sd.out
status $1
@output
echo " "
fi
+grep "glibc detected" tmp/log*.out 2>&1 >/dev/null
+if [ $? = 0 ] ; then
+ echo " "
+ echo " !!!! glibc detected Error in log output !!!!"
+ echo " !!!! glibc detected Error in log output !!!!" >>test.out
+ echo " "
+fi
+