Help with Bullk Import

The forum for help and support with FreeNATS as well as any useful hints and tips
Post Reply
PaulFleetwood
Posts: 2
Joined: Wed Apr 13, 2011 8:48 am

Help with Bullk Import

Post by PaulFleetwood » Wed Apr 13, 2011 8:52 am

I've run a discovery (using the notes in the Wiki) and generated an XML file.
If I run the import without --live it appears to be OK, but when I try a live import I get:

Starting FreeNATS for live impot... PHP Fatal error: Cannot redeclare hdisp() (previously decalred in /opt/freenats/server/base/help.inc.php:156) in /opt/freenats/server/base/help.inc.php on line 199

I've tried restarting the Appliance (I'm running it in VMWare) and running the import as the first task (before anythign else is done) - but still the same problem.

Anyway I can overcome this?

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Help with Bullk Import

Post by dave » Wed Apr 13, 2011 9:51 am

Hi there,

Ok I have identified the fault (Bug 263).

I will put out a fix for this in the next alpha (and post here). In the meantime you can fix it if you wish as follows:
  • Login as root to the console
    Type: nano /opt/freenats/server/bin/import.php
    In the editor go Control + - then enter the line number 222 and press return
    The line should be: require($BaseDir."nats.php");
    Comment it out - put // before the line so it now reads: //require($BaseDir."nats.php");
    Press Control + X and then choose yes to save and press enter for the filename
This should sort out the issue. Will post again when fixed in release.

Thanks for your bug report and I'm sorry you're having problems.

Cheers,

Dave.

PaulFleetwood
Posts: 2
Joined: Wed Apr 13, 2011 8:48 am

Re: Help with Bullk Import

Post by PaulFleetwood » Wed Apr 13, 2011 1:59 pm

Dave

Many thanks for your quick response - that change has allowed the import to work succesfully.

Cheers

Paul

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Help with Bullk Import

Post by dave » Wed Apr 13, 2011 2:03 pm

Glad to hear it. Will probably fix it in release next week.

Thanks again for the report.

Cheers,

Dave.

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Help with Bullk Import

Post by dave » Wed Apr 13, 2011 7:01 pm

Fixed in new alpha release 1.13.1a

Post Reply