]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/scripts/check_for_zombie_jobs.cmd
Updates
[bacula/bacula] / regress / win32 / scripts / check_for_zombie_jobs.cmd
1 REM
2 REM Check for zombie jobs (not terminated).
3 REM Also scan logs for ERROR messages
4
5 sed -e "s;@storage@;%1=%2;" scripts\check_for_zombie_jobs.bscr >tmp\bconcmds
6 CALL scripts\functions run_bconsole
7 grep "No Jobs running." tmp\dir.out >nul 2>&1
8 IF %ERRORLEVEL% NEQ 0 (
9   ECHO.
10   ECHO   !!!! Zombie Jobs in Director !!!!
11   ECHO   !!!! Zombie Jobs in Director !!!! >>test.out
12   ECHO.
13 )
14 grep "No Jobs running." tmp\fd.out >nul 2>&1
15 IF %ERRORLEVEL% NEQ 0 (
16   ECHO.
17   ECHO   !!!! Zombie Jobs in File daemon !!!!
18   ECHO   !!!! Zombie Jobs in File daemon !!!! >>test.out
19   ECHO.
20 )
21 grep "No Jobs running." tmp\sd.out >nul 2>&1
22 IF %ERRORLEVEL% NEQ 0 (
23   ECHO.
24   ECHO   !!!! Zombie Jobs in Storage daemon !!!!
25   ECHO   !!!! Zombie Jobs in Storage daemon !!!! >>test.out
26   ECHO.
27 )
28 grep "ERROR" tmp/log*.out >nul 2>&1
29 IF %ERRORLEVEL% EQU 0 (
30   ECHO.
31   ECHO   !!!! ERROR in log output !!!!
32   ECHO   !!!! ERROR in log output !!!! >>test.out
33   ECHO.
34 )
35 grep "Fatal Error" tmp\log*.out >nul 2>&1
36 IF %ERRORLEVEL% EQU 0 (
37   ECHO.
38   ECHO   !!!! Fatal Error in log output !!!!
39   ECHO   !!!! Fatal Error in log output !!!! >>test.out
40   ECHO.
41 )