]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/check_for_zombie_jobs
update configure
[bacula/bacula] / regress / scripts / check_for_zombie_jobs
index 69c25c1734d81db765978e4f2134f6ee1ab190c6..e2c240565b090c0b1912658a3f037680cd4edbda 100755 (executable)
@@ -4,19 +4,21 @@
 # Also scan logs for ERROR messages
 #
 
+. ./config
+
 # check_for_zombie_jobs storage=STORAGE [client=localhost-fd]
 
 if [ $# = 2 ] ; then
     client="$2"
 else 
-    client=${HOST}-fd
+    client="client"
 fi
 
 ${bin}/bconsole -c ${scripts}/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
 @output ${tmp}/dir.out
 status dir
 @output ${tmp}/fd.out
-status client=${client}
+status ${client}
 @output ${tmp}/sd.out
 status $1
 @output
@@ -29,6 +31,7 @@ if [ $? != 0 ] ; then
   echo " "
   echo "  !!!! Zombie Jobs in Director !!!!"
   echo "  !!!! Zombie Jobs in Director !!!!" >>test.out
+  cat ${tmp}/dir.out
   echo " "
   zstat=1
   exit 1
@@ -38,6 +41,7 @@ if [ $? != 0 ] ; then
   echo " "
   echo "  !!!! Zombie Jobs in File daemon !!!!"
   echo "  !!!! Zombie Jobs in File daemon !!!!" >>test.out
+  cat ${tmp}/fd.out
   echo " "
   zstat=1
   exit 1
@@ -47,6 +51,7 @@ if [ $? != 0 ] ; then
   echo " "
   echo "  !!!! Zombie Jobs in Storage daemon !!!!"
   echo "  !!!! Zombie Jobs in Storage daemon !!!!" >>test.out
+  cat ${tmp}/sd.out
   echo " "
   zstat=1
   exit 1