Yes you would have to recompile to enable mySQL support - there is a ton of ifdef code...
If I'm reading it right on a quick glance (database/mySQLscript.pl) is just using the Perl ODBC interface to connect between ntop and mySQL... Note that there is another choice, one that doesn't actively put data into the database, but rather does a periodic extract - it depends on what you need to do, but this one would require more coding on your part. And that is to use the other scripts (the dump ones) to pull the data out of ntop, massage it and then dump it into the database in whatever format you want... Problem I see here is timing - to get valid day-by-day stuff, the extract would have to run every day at the exact same time... and even via cron, you would have to live with a little slop. Sort of depends what level of data you want to keep - you can be pretty selective once you have the large structure in Perl, but it's a lot more Perl coding... -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sylar, John Sent: Thursday, February 21, 2002 8:26 AM To: Users NTOP (E-mail) Subject: [Ntop] Win32 version as a service + compile questions?? I didn't find this mentioned in the archives, but wonder if its been discussed: Are there plans to improve the W32 version so that it detaches from the console and runs as a service? I'm no programmer, so I wouldn't know how to make these modifications in the source. I tried installing with Srvany and including the switch "Allow interaction with the desktop". But it seems since the console doesn't return a status to the Service Control Manager, the start up fails. Back to the drawing board..... I'm a little confused after reviewing the source. Dumb question #1: Is it necessary to recompile to get MySQL support, or are the perl scripts sufficient? Dumb question #2: To recompile for W32, what sort of compiler is required? Looking at the source, it appears to be gcc for all platforms, and I've read about MinGW in several posts. Are there any others? What does Luca use? Sam _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listmanager.unipi.it/mailman/listinfo/ntop
