[fwgold-users] Re: Problems processing offline log files

  • From: Olaf Kullig <OKullig@xxxxxxx>
  • To: "'fwgold-users@xxxxxxxxxxxxx'" <fwgold-users@xxxxxxxxxxxxx>
  • Date: Tue, 19 Nov 2002 10:27:46 +0100

Hi Gianluca,

thank you very much for taking the time to look at this issue, although I
still get same error after downloading and trying 2.0.6beta.
I got a little deeper into the whole thing now and can see what you mean -
the path contains two backslashes directly after the C.
The error message also tells me it is in line 323 in the script and playing
around with it, I maybe found a workaround...

Here again the entire command line:

C:\RRDTEST\fwgold-2.0.6beta\bin>perl fwgold-win32 --configuration
c:\rrdtest\fwgold-2.0.6beta\etc\fwgold-win32.conf --mode client --updatedb
--offline c:\rrdtest\fw_logs\fwlog1.txt --start 2002/07/08

Generating graphics...
fwgold-win32: ERROR while creating graphic for fw-connections: can't parse
DEF
'total=C\\:/rrdtest/fwgold-2.0.6beta/db/fw-connections.rrd:total:AVERAGE' -2
at fwgold-win32 line 323, <OFFLINE> line 1098691.

Now I got into the fwgold-win32 scipt (I put line numbers in front of it) 

915  #
916  # Fix path incompatibility on Win32
917  #
918  if ($self->{Config}->{CLIENTDBPATH} =~ m/^(\w):(.*)$/) {
919    $DEF_PATH = $1 . "\\\\\:" . $2;
920  } else {
921    $DEF_PATH = $self->{Config}->{CLIENTDBPATH};
922  }

and deleted two of the backslashes :)
This seems to do the job and is reproducable - if I put them back in I get
the same error message...
I am not sure if this problem has to do with my system - my systems locale
is set to Korean although it is Windows 2000 English. I will try to verify
this on another machine...

I am having more dificulties, though. After I couldn't get it to work in
Windows, I have tried last week to parse the log files offline under
FreeBSD. The original segmentation fault interestingly disappeared after a
few attempts and the script is running through without any problems. When I
run --makehtml it also reports ok, but when I look at the web site, the
graphics aren't containing any graphs. The gif files get created though, but
no lines...I am not sure if I am doing something really simple wrong. Maybe
someone has experience with this?

Thanks again for your help!

olaf



> -----Original Message-----
> From: Gianluca Rotoni [mailto:gianluca@xxxxxxxxxx]
> Sent: Monday, November 18, 2002 6:46 PM
> To: fwgold-users@xxxxxxxxxxxxx
> Subject: [fwgold-users] Re: Problems processing offline log files 
> 
> 
> 
> Hi,
> 
> I've found a bug on the Win32 version (wrong PATH in RRDgraph 
> DEF entry). 
> I've just released version 2.0.6 which contains the bug fix.
> 
> Regards,
> Gianluca
> 
> > 
> > Hi all,
> > 
> > I am totally new to fwgold and I am not a Perl expert, so I 
> need some help.
> > 
> > I have the following problem:
> > I would like to set up the whole thing for permanent 
> processing of the log
> > files, but do have several months' old log files I would 
> like to integrate
> > in the graphics. While I am testing the general functionality (under
> > Windows and Unix) I am getting a parsinig error when 
> processing offline log
> > files.
> > 
> > This is what I did: 
> > I have created the database with the --init option and 
> provided the start
> > date when the log file was created.
> > When after that processing the log file with:
> > perl fwgold-win32 --configuration <path to config file> 
> --mode client --
> > updatedb --offline <path to ASCII log file> --start DATE
> > I will get under Windows 2000 get the following error after 
> the program
> > jumps into
> > 
> > Generating graphics...
> > C:/rrdtest/fwgold-2.0.4beta/db
> > 
> > C\\:/rrdtest/fwgold-2.0.4beta/db
> > 
> > fwgold-win32: ERROR while creating graphic for 
> fw-connections: can't parse
> > DEF 
> 'total=C:/rrdtest/fwgold-2.0.4beta/db/fw-connections.rrd:total
:AVERAGE'
> > -2 at fwg
> > old-win32 line 323, <OFFLINE> line 100000.
> > 
> > On FreeBSD 4.7 I would get a 
> > segmentation fault
> > 
> > Any ideas?
> > Any help would be greatly appreciated.
> > 
> > Best regards,
> > 
> > 
> > Olaf Kullig
> > Samsung SDS Europe Ltd. - German Branch
> > D-65824 Schwalbach
> > 
> > 
> > =================================================
> >         Archives of this mailing list's 
> >          messages ca be retrieved from
> >  //www.freelists.org/archives/fwgold-users 
> > =================================================
> >      To unsubscribe from this maling list
> > send a mail to fwgold-users-request@xxxxxxxxxxxxx
> >      with the word "unsubscribe" as subject.
> > =================================================
> >    To administer your account visit the site :
> >    //www.freelists.org/cgi-bin/lsg2.cgi
> > =================================================
> > 
> 
> 
> 
> =================================================
>         Archives of this mailing list's 
>          messages ca be retrieved from
>  //www.freelists.org/archives/fwgold-users 
> =================================================
>      To unsubscribe from this maling list
> send a mail to fwgold-users-request@xxxxxxxxxxxxx
>      with the word "unsubscribe" as subject.
> =================================================
>    To administer your account visit the site :
>    //www.freelists.org/cgi-bin/lsg2.cgi
> =================================================
> 
=================================================
        Archives of this mailing list's 
         messages ca be retrieved from
 //www.freelists.org/archives/fwgold-users 
=================================================
     To unsubscribe from this maling list
send a mail to fwgold-users-request@xxxxxxxxxxxxx
     with the word "unsubscribe" as subject.
=================================================
   To administer your account visit the site :
   //www.freelists.org/cgi-bin/lsg2.cgi
=================================================

Other related posts: