Ignore:
Timestamp:
03/14/12 09:03:44 (13 years ago)
Author:
Daniela Dorner
Message:
improved logging
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Monitoring/CheckStatus.sh

    r13064 r13094  
    3131   
    3232   # check table for failed jobs
     33   printprocesslog "INFO checking "$step" for failed jobs."
    3334   where=" WHERE NOT ISNULL(fReturnCode) "
    3435   where=$where" AND fStopTime > ADDDATE(NOW(), INTERVAL -25 HOUR)"             
    3536   query="SELECT Count(*) FROM "$step"Status "$where
    3637   num=`sendquery`
    37    printprocesslog "WARN found in "$step" "$num" rows with errors."
    3838   if [ $num -gt 0 ]
    3939   then
     40      printprocesslog "WARN found in "$step" "$num" rows with errors."
    4041      sel=$selstart", '(', fReturnCode, ')')"
    4142      query="SELECT "$sel" FROM "$step"Status "$where
     
    4748   #   i.e. jobs which are running > 2 hours
    4849   # check the last 27 hours
     50   printprocesslog "INFO checking "$step" for crashed jobs."
    4951   where=" WHERE NOT ISNULL(fStartTime) AND ISNULL(fStopTime) "
    5052   where=$where" AND fStartTime < ADDDATE(NOW(), INTERVAL -2 HOUR)"
     
    5254   query="SELECT Count(*) FROM "$step"Status "$where
    5355   num=`sendquery`
    54    printprocesslog "WARN found in "$step" "$num" crashed jobs."
    5556   if [ $num -gt 0 ]
    5657   then
     58      printprocesslog "WARN found in "$step" "$num" crashed jobs."
    5759      sel=$selstart", '(', fStartTime, ')')"
    5860      query="SELECT "$sel" FROM "$step"Status "$where
Note: See TracChangeset for help on using the changeset viewer.