[Orca-users] Re: Day-by-day Daily graphs

Adam Levin alevin at audible.com
Wed Nov 1 08:31:43 PST 2000


On Wed, 1 Nov 2000, Blair Zajac wrote:
> wtang at biz.netvigator.com wrote:
> > Hi everyone,
> > 
> > I just wonder if it is possible to config Orca so that it will
> > plot graphs for everyday instead of only today. Which means I
> > will be able to see graphs for yesterday instead of just for
> > today.
>
> No, Orca isn't currently designed to do that.  Currently the only
> way to do this would be to have a cron job that copies the directory
> tree created by Orca into a separate tree once a day.

Here's what we do:
--begin shell script--
#!/bin/ksh
DATE=`/usr/local/bin/date +%Y%m%d`
ORCADIR=<put your orca HTML dir here>
ARCHDIR=<put your archive HTML dir here>
if ! [ -e $ARCHDIR/$DATE ]
then
  mkdir $ARCHDIR/$DATE
fi
cd $ORCADIR
/usr/local/bin/tar cfl - . | (cd $ARCHDIR/$DATE;/usr/local/bin/tar xf -)
--end shell script--

In cron, we have:
59 23 * * * rotate_orca.sh

-Adam

Adam Levin, Senior Unix Systems Administrator | http://www.audible.com/
Audible, Inc.     
Wayne, NJ, 07470        You can't punch fog.
973-837-2797                


-------------------------- eGroups Sponsor -------------------------~-~>
eGroups eLerts
It's Easy. It's Fun. Best of All, it's Free!
http://click.egroups.com/1/9698/13/_/804404/_/973096408/
---------------------------------------------------------------------_->





More information about the Orca-users mailing list