Changeset 13094 for trunk/DataCheck/Monitoring
- Timestamp:
- 03/14/12 09:03:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Monitoring/CheckStatus.sh
r13064 r13094 31 31 32 32 # check table for failed jobs 33 printprocesslog "INFO checking "$step" for failed jobs." 33 34 where=" WHERE NOT ISNULL(fReturnCode) " 34 35 where=$where" AND fStopTime > ADDDATE(NOW(), INTERVAL -25 HOUR)" 35 36 query="SELECT Count(*) FROM "$step"Status "$where 36 37 num=`sendquery` 37 printprocesslog "WARN found in "$step" "$num" rows with errors."38 38 if [ $num -gt 0 ] 39 39 then 40 printprocesslog "WARN found in "$step" "$num" rows with errors." 40 41 sel=$selstart", '(', fReturnCode, ')')" 41 42 query="SELECT "$sel" FROM "$step"Status "$where … … 47 48 # i.e. jobs which are running > 2 hours 48 49 # check the last 27 hours 50 printprocesslog "INFO checking "$step" for crashed jobs." 49 51 where=" WHERE NOT ISNULL(fStartTime) AND ISNULL(fStopTime) " 50 52 where=$where" AND fStartTime < ADDDATE(NOW(), INTERVAL -2 HOUR)" … … 52 54 query="SELECT Count(*) FROM "$step"Status "$where 53 55 num=`sendquery` 54 printprocesslog "WARN found in "$step" "$num" crashed jobs."55 56 if [ $num -gt 0 ] 56 57 then 58 printprocesslog "WARN found in "$step" "$num" crashed jobs." 57 59 sel=$selstart", '(', fStartTime, ')')" 58 60 query="SELECT "$sel" FROM "$step"Status "$where
Note:
See TracChangeset
for help on using the changeset viewer.