[Orca-users] Re: Nothing plotted on the graphs

sebastien.harnist at systor.com sebastien.harnist at systor.com
Wed Jun 6 04:30:30 PDT 2001


Thanks for the script, I tried it, but everything looks ok with the
files :((.
On the Graphs the date is ok too, but there's nothing displayed on
them. I really can't understand why. I looked for the read right, but
this is ok too. So the graphs are generated with the correct date and
time, but empty. The files are copied trhough a permanent ssh tunnel,
I don't think they could be alterated this way...
Any idea could help ;)

thanks

Sebastien


> If the data files on the central server have arrived after Orca was
started
> try sending a SIGHUP to the Orca process to cause it to look for new
files
> (or you could wait for the configured times when Orca looks for new
files).
> Or you stop and restart Orca for the same effenct, although much
heavier on
> resources.
>
> Check the dates of last entry in the RRD files for the remote
machine are
> not later than the times in the percol files (what does the 'last
date' on
> the graph show ?).  With my convoluted config I have seen data files
> getting corrupted during generation (not from orcallator.se but some
DBA
> generated scripts monitoring SYbase) where the time column gets a
number
> bigger than it should be for the current number of seconds since the
epoch.
> How do you copy your percol files from the remote machine to the
central
> server ? are there any race conditions ?
>
> I used a simple perl script to check the time field in my raw data
files
> --
> #! /usr/bin/perl -w
>
> use strict;
>
> my $fnam = $ARGV[0];
>
> open (F, $fnam) || die "$0: Cannot read \"$fnam\" : $!\n";
>
> use Time::Local;
>
> while (<F>)
>   {
>     my ($seconds) = split ' ', $_, 2;
>
>     my @time = localtime( $seconds );
>
>     my $sec    = sprintf "%02d", $time[0] ;
>     my $min    = sprintf "%02d", $time[1] ;
>     my $hour   = sprintf "%02d", $time[2] ;
>
>     my $_day   = sprintf "%02d", $time[3] ;
>     my $_month = sprintf "%02d", $time[4] ;
>     my $_year  = $time[5] + 1900;
>
>     my $_month_str = (qw(Jan Feb Mar Apr May Jun
>                 Jul Aug Sep Oct Nov Dec))[ $time[4] ];
>
>     print "$_day/$_month_str/$_year $hour:$min:$sec\t ($seconds)\n";
>   }
> --
>
> and just looked for bad dates ...
>
>
>
> Does this help ??
>
> Simon
http://docs.yahoo.com/info/terms/



More information about the Orca-users mailing list