Great! Thanks for taking the time to look at that for me!
Michael
-----Original Message-----
From: Henrik Storner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, April 12, 2005 9:51 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] MRTG & Hobbit
In <user-5abdb239fc11@xymon.invalid> "Lowery,
Michael" <user-89d72f0c2e3d@xymon.invalid> writes:
Bbmrtg.sh has this in it, but I don't know how to determine what it's
doing and why it's reporting the error.
timenow=`$BBHOME/bin/touchtime -e`
timediff=`echo "$lasttimestamp $timenow" | $AWK '{ print $2 -
$1}'`
[snip]
if [ "$timediff" -gt 0 ]
then
[cut]
else
ERRMSG="Time stamp in log is on the future !"
fi
I suspect this may happen if you run bbmrtg with BBHOME pointing to
the Hobbit installation - because the "touchtime" utility does not
exist. So you get "timediff" to be negative from the awk command.
If you have GNU date installed, I'd just replace that line with
timenow=`date +%s`
and see if that resolves it.
Regards,
Henrik