OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: sol on January 08, 2019, 06:50:40 PM

Title: ntopng data directory migration notice since last update
Post by: sol on January 08, 2019, 06:50:40 PM
Hi there,

with the recent update ntopng wants a data migration

https://www.ntop.org/support/faq/migrate-the-data-directory-in-ntopng/ (https://www.ntop.org/support/faq/migrate-the-data-directory-in-ntopng/)

How can this guide from ntop be used the change the settings on opnsense via console / ssh?

Thank you.
Title: Re: ntopng data directory migration notice since last update
Post by: mimugmail on January 08, 2019, 07:26:39 PM
I wouldn't recommend it.
You can login via SSH and execute the commands like in the blog post, but this is only relevant when your ntop instance is worldwide accessible ..
Title: Re: ntopng data directory migration notice since last update
Post by: sol on January 08, 2019, 07:28:49 PM
So I can just ignore the notice in ntopng and it will keep working like before?
Title: Re: ntopng data directory migration notice since last update
Post by: mimugmail on January 09, 2019, 05:42:02 AM
Thats what the author writes in your link
Title: Re: ntopng data directory migration notice since last update
Post by: bunchofreeds on January 11, 2019, 02:50:25 AM
I'm receiving this warning also after the last update including an updated NTOPNG.
Its annoying as I cannot find a way to remove the warning message?
Currently it is quite an obvious pink banner across the top of 'every' window within NTOPNG.
This is a home setup so I'm not overly impacted by it

I have tried following the article without any change to the warning message.
Title: Re: ntopng data directory migration notice since last update
Post by: franco on January 11, 2019, 06:17:57 PM
The warning message is from FreeBSD ports. We do not intend to change it.


Cheers,
Franco
Title: Re: ntopng data directory migration notice since last update
Post by: bunchofreeds on January 24, 2019, 03:52:42 AM
Found a fix but it does not survive an OPNsense reboot

Stop the ntopng Service through the OPNsense GUI

Move contents of ntopng data directory to new location
# mv /var/tmp/ntopng/* /var/db/ntopng/

Apply the correct access to the new directory
# chown -R ntopng:ntopng /var/db/ntopng

Apply this notpng CLI command which points ntopng to the new data directory
# ntopng --data-dir /var/db/ntopng

Start ntopng service through the OPNsense GUI

Have tried applying the ntopng CLI command for updating the data directory
--data-dir=/var/db/ntopng
To the file
/usr/local/etc/ntopng.conf
This works but does not survive a reboot of OPNsense.

There is another instance of the config file located at
/usr/local/opnsense/service/templates/OPNsense/Ntopng/ntopng.conf

But I have not attempted to update this file as I am not sure which location of the config to correctly update.
Title: Re: ntopng data directory migration notice since last update
Post by: guest15389 on January 31, 2019, 03:58:38 PM
Is there a recommended way to get the message to go away? My OCD can't handle a red banner there forever...
Title: Re: ntopng data directory migration notice since last update
Post by: mimugmail on January 31, 2019, 07:36:53 PM
I'll so this next week ...
Title: Re: ntopng data directory migration notice since last update
Post by: guest15389 on January 31, 2019, 07:38:00 PM
Awesome. Thanks!
Title: Re: ntopng data directory migration notice since last update
Post by: bunchofreeds on January 31, 2019, 08:51:44 PM
That would be great! Thanks
Title: Re: ntopng data directory migration notice since last update
Post by: mimugmail on February 10, 2019, 07:42:34 PM
I added a fix .. will be in 19.1.2 or .3 ...
Title: Re: ntopng data directory migration notice since last update
Post by: franco on February 11, 2019, 08:49:10 AM
19.1.2
Title: Re: ntopng data directory migration notice since last update
Post by: mimugmail on February 11, 2019, 10:15:29 AM
 :-*