|
|
@@ -169,6 +169,16 @@ while test -n "$1"; do
|
|
|
shift
|
|
|
done
|
|
|
|
|
|
+if [ "$oldlog" = "" ]; then
|
|
|
+ echo "Log check error: You must supply an Old Log File name using '-O'!"
|
|
|
+ exit "$STATE_UNKNOWN"
|
|
|
+fi
|
|
|
+rc=`echo "$oldlog" | grep -q -- "^-"; echo $?`
|
|
|
+if [ $rc -eq 0 ]; then
|
|
|
+ echo "Log check error: You must supply an Old Log File name using '-O'!"
|
|
|
+ exit "$STATE_UNKNOWN"
|
|
|
+fi
|
|
|
+
|
|
|
# If the source log file doesn't exist, exit
|
|
|
|
|
|
if [ ! -e "$logfile" ]; then
|