Mailing List Archive

Dumping nprobe output to sqlite doesn't work
I'm trying to use the -D option to get nprobe dumping to sqlite, but it continues to dump in text format as if the "-D d" parameter hasn't been specified. If I specify "-D b" it dumps in binary format, so why doesn't "-D d" work?

This is my command:
sudo nprobe -i none -n none --collector-port 9997 -V9 --zmq tcp://192.168.0.222:2055 -P nprobelogs --dont-nest-dump-dirs -D d

Peter Shute
_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: Dumping nprobe output to sqlite doesn't work [ In reply to ]
I found this in the source code:
printf("[--dump-format|-D] <format> | <format>: flows are saved as:\n"
" | b : raw/uncompressed flows\n"
" | t : text flows\n"
#ifdef HAVE_SQLITE
" | d : SQLite\n"
#endif

Indeed, when I run nprobe --h, the line above about sqlite doesn't get printed, so presumably the problem is that it thinks I don't have sqlite installed. How do I get it to recognise that it's installed?

I also see this in the nprobe user guide:
" Support for disk-dump flow, either text files or SQLite files, and MySQL database server dump flow."

Is it really possible to make it dump to MySQL? What's the parameter?

Peter Shute

> -----Original Message-----
> From: ntop-misc-bounces@listgateway.unipi.it [mailto:ntop-misc-
> bounces@listgateway.unipi.it] On Behalf Of Peter Shute
> Sent: Thursday, 1 September 2016 11:23 AM
> To: 'ntop-misc@listgateway.unipi.it' <ntop-misc@listgateway.unipi.it>
> Subject: [Ntop-misc] Dumping nprobe output to sqlite doesn't work
>
> I'm trying to use the -D option to get nprobe dumping to sqlite, but it
> continues to dump in text format as if the "-D d" parameter hasn't been
> specified. If I specify "-D b" it dumps in binary format, so why doesn't "-D d"
> work?
>
> This is my command:
> sudo nprobe -i none -n none --collector-port 9997 -V9 --zmq
> tcp://192.168.0.222:2055 -P nprobelogs --dont-nest-dump-dirs -D d
>
> Peter Shute
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: Dumping nprobe output to sqlite doesn't work [ In reply to ]
I think the code below suggests that sqlite support needs to be added at compile time?

> -----Original Message-----
> From: ntop-misc-bounces@listgateway.unipi.it [mailto:ntop-misc-
> bounces@listgateway.unipi.it] On Behalf Of Peter Shute
> Sent: Thursday, 1 September 2016 11:42 AM
> To: 'ntop-misc@listgateway.unipi.it' <ntop-misc@listgateway.unipi.it>
> Subject: Re: [Ntop-misc] Dumping nprobe output to sqlite doesn't work
>
> I found this in the source code:
> printf("[--dump-format|-D] <format> | <format>: flows are saved as:\n"
> " | b : raw/uncompressed flows\n"
> " | t : text flows\n"
> #ifdef HAVE_SQLITE
> " | d : SQLite\n"
> #endif
>
> Indeed, when I run nprobe --h, the line above about sqlite doesn't get
> printed, so presumably the problem is that it thinks I don't have sqlite
> installed. How do I get it to recognise that it's installed?
>
> I also see this in the nprobe user guide:
> " Support for disk-dump flow, either text files or SQLite files, and MySQL
> database server dump flow."
>
> Is it really possible to make it dump to MySQL? What's the parameter?
>
> Peter Shute
>
> > -----Original Message-----
> > From: ntop-misc-bounces@listgateway.unipi.it [mailto:ntop-misc-
> > bounces@listgateway.unipi.it] On Behalf Of Peter Shute
> > Sent: Thursday, 1 September 2016 11:23 AM
> > To: 'ntop-misc@listgateway.unipi.it' <ntop-misc@listgateway.unipi.it>
> > Subject: [Ntop-misc] Dumping nprobe output to sqlite doesn't work
> >
> > I'm trying to use the -D option to get nprobe dumping to sqlite, but
> > it continues to dump in text format as if the "-D d" parameter hasn't
> > been specified. If I specify "-D b" it dumps in binary format, so why doesn't
> "-D d"
> > work?
> >
> > This is my command:
> > sudo nprobe -i none -n none --collector-port 9997 -V9 --zmq
> > tcp://192.168.0.222:2055 -P nprobelogs --dont-nest-dump-dirs -D d
> >
> > Peter Shute
> > _______________________________________________
> > Ntop-misc mailing list
> > Ntop-misc@listgateway.unipi.it
> > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc