[NFDB-users] Netflowdashboard doesn't write flows to the database.
Dan Colish
dcolish at gmail.com
Tue May 19 15:29:52 EDT 2009
On Tue, May 19, 2009 at 02:35:23PM +0200, Filip Palian wrote:
> Filip Palian wrote:
> > Executing patched "netflowdb.pl" results with:
> > $ sudo /var/www/netflowdashboard/sbin/netflowdb.pl -D
> > before
> > ^C
> > /var/www/netflowdashboard/sbin/netflowdb.pl exiting
> >
> > Can't call method "read_flow" on an undefined value at /var/www/netflowdashboard/sbin/netflowdb.pl line 50.
> >
> >
> > Script "netflowdb.pl" hangs on line 41 (in the original script):
> > -- cut --
> > my $flowd = Flowd->new($flowd_socket);
> > -- cut --
>
>
> This one is interesting:
> $ perl -d /var/www/netflowdashboard/sbin/netflowdb.pl -D
> ...
> main::(/var/www/netflowdashboard/sbin/netflowdb.pl:42):
> 42: my $flowd = Flowd->new($flowd_socket);
> DB<1> n
>
> ^C
> /var/www/netflowdashboard/sbin/netflowdb.pl exiting
>
> at /usr/local/libdata/perl5/site_perl/i386-openbsd/Flowd.pm line 143
> Flowd::init('Flowd=HASH(0x80e34170)', '/tmp/flowpipe') called at
> /usr/local/libdata/perl5/site_perl/i386-openbsd/Flowd.pm line 130
> Flowd::new('Flowd', '/tmp/flowpipe') called at /var/www/netflowdashboard/sbin/netflowdb.pl line 42
> Debugged program terminated. Use q to quit or R to restart,
> use o inhibit_exit to avoid stopping after program termination,
> h q, h R or h o to get additional info.
> DB<1>
>
>
> It seems that "netflowdb.pl" calls "/usr/local/libdata/perl5/site_perl/i386-openbsd/Flowd.pm" and hangs on line 143:
> -- cut --
> open($fhandle, "<$filename") or die "open($filename): $!";
> -- cut --
>
> in the "init" subroutine. The rest is obvious. What may be the cause?
>
>
> Best regards,
> --
> Filip Palian
> admin at expro.pl
>
Your line numbers differ between the first paste you sent and the
second. Be sure your file is not missing any lines. Also, if anything,
this is an issue with Flowd for perl. Again, it does work fine on my
system. Please provide versions of the packages you've installed.
--Dan
More information about the nfdb-users
mailing list