Great! Thanks for taking the time to look at that for me!
Michael -----Original Message----- From: Henrik Storner [mailto:henrik at hswn.dk] Sent: Tuesday, April 12, 2005 9:51 AM To: hobbit at hswn.dk Subject: Re: [hobbit] MRTG & Hobbit
In <40534FFD21F8E9428DD8CCF2B60B09EC6E91FE at atlitdc01.atg.local> "Lowery, Michael" <mlowery at alliedtechgroup.com> 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 -etimediff=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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (1)
-
mloweryï¼ alliedtechgroup.com