Commit bf1e5603 authored by 's avatar

Date is logged by check scripts


git-svn-id: file:///home/svn/mapi/trunk@1230 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent cfe3ffd2
......@@ -61,6 +61,9 @@ if [ ! -f ${LOG_FILE} ]; then
touch ${LOG_FILE}
fi
CURRENT_TIMESTAMP=`date +%s`
CURRENT_TIME=`date`
RESTART=0
# Find filenames of RRD file that store results for all traffic. At least
......@@ -94,9 +97,8 @@ do
echo "MAX_VALUE_INTEGER: $MAX_VALUE_INTEGER"
if [ $MAX_VALUE_INTEGER -le 0 ]; then
echo "Maximum recent value is 0, restarting abw"
date >> $LOG_FILE
echo "Maximum recent value is 0, restarting abw" >> $LOG_FILE
echo "$CURRENT_DATE: Maximum recent value is 0, restarting abw"
echo "$CURRENT_DATE: Maximum recent value is 0, restarting abw" >> $LOG_FILE
RESTART=1
else
echo "Maximum recent value is $MAX_VALUE_INTEGER, abw is running"
......
......@@ -62,7 +62,7 @@ if [ ! -f ${LOG_FILE} ]; then
fi
CURRENT_TIMESTAMP=`date +%s`
CURRENT_TIME=`date`
CURRENT_DATE=`date`
RESTART=0
......@@ -85,9 +85,8 @@ do
echo "TIME_DIFF: $TIME_DIFF"
if [ $TIME_DIFF -gt 60 ]; then
echo "$CURRENT_TIME: RRD file is not being updated, restarting abw"
date >> $LOG_FILE
echo "$CURRENT_TIME: RRD file is not being updated, restarting abw" >> $LOG_FILE
echo "$CURRENT_DATE: RRD file is not being updated, restarting abw"
echo "$CURRENT_DATE: RRD file is not being updated, restarting abw" >> $LOG_FILE
RESTART=1
fi
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment