• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

ntopng on 2.5.0 settings lost after restart service

Scheduled Pinned Locked Moved Traffic Monitoring
9 Posts 6 Posters 2.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Rai80
    last edited by Feb 22, 2021, 2:40 PM

    Since on 2.5.0 when I restart ntopng service all my preferences/settings are gone. Seems like it does a reset of everything.

    Btw. I use ramdisk for /var/db. Don't know if this has affect.

    V 1 Reply Last reply May 9, 2021, 6:19 AM Reply Quote 0
    • R
      Rai80
      last edited by Rai80 Feb 22, 2021, 9:08 PM Feb 22, 2021, 7:57 PM

      After troubleshooting I've found a workaround.

      After setting preferences and settings I ran: /usr/local/bin/redis-cli save

      This will save the settings to /var/db/ntopng.rdb (Redis DB)

      1 Reply Last reply Reply Quote 1
      • T
        tobira
        last edited by Feb 27, 2021, 3:18 AM

        Has there been any official acknowledgement on this? It's frustrating to have to reconfigure ntopng between reboots.

        1 Reply Last reply Reply Quote 0
        • 3
          3freet
          last edited by 3freet Mar 5, 2021, 2:33 PM Mar 5, 2021, 2:30 PM

          ntonpg package for pfsense has been broken for a long time, and still is in the latest 2.5 version. I generally try to separate network analysis tools from the firewall for performance reasons, but sometimes it's ok for non critical deployments. I recently had to integrate ntopng with pfsense in the same box, but found the package that ships with the package manager broken and full of bugs like the one mentioned in this post.

          After a lot of troubleshooting, I concluded that the best approach is to install ntopng as a third party package from the command shell like on any other system.
          You either follow the instructions here at packages.ntop.org/FreeBSD (Note that pfsense 2.5 is FreeBSD 12), or you simply use the official pkg.freebsd.org which is included in pfsense by default.

          ntop.org will get you the latest development build, while freebsd.org has a stable 4.2 build, but sometimes they get too behind in version.

          I wrote a dedicated blog post but this is the process in short:
          '
          '
          '
          1- On pfsense 2.5, install ntopng and redis database using the shell

          pkg install ntopng redis
          

          2- Enable ntopng and redis services

          sysrc redis_enable="YES"
          sysrc ntopng_enable="YES"
          

          3- Install Shellcmd package from pfsense gui package manager

          4- Add the below entries to Shellcmd settings and save

          service redis start
          service ntopng start
          

          5- Configure ntopng geolocation by downloading the relevant .mmdb files from MaxMind and place them in the folder
          "/usr/local/share/ntopng/httpdocs/geoip"

          6- Edit the startup script of ntopng to add your custom command arguments located in "/usr/local/etc/rc.d/ntopng"

          7- Start redis and ntopng services, or simply reboot pfsense

          service start redis
          service start ntopng
          
          R 1 Reply Last reply Mar 5, 2021, 3:04 PM Reply Quote 1
          • R
            Rai80 @3freet
            last edited by Mar 5, 2021, 3:04 PM

            @3freet Thanks for sharing! Will try this.

            1 Reply Last reply Reply Quote 0
            • G
              guntery
              last edited by May 8, 2021, 9:37 AM

              6: how do you add the argument?

              /usr/local/etc/ntopng.conf is ignored.
              /usr/local/etc/rc.d/ntopng is ignored.

              G 1 Reply Last reply May 9, 2021, 12:19 AM Reply Quote 0
              • G
                guntery @guntery
                last edited by May 9, 2021, 12:19 AM

                /usr/local/etc/rc.d/ntopng

                adding here worked:

                command_args="-G ${ntopng_pidfile} -e --community -i vtnet1 -i -w 3000"
                
                1 Reply Last reply Reply Quote 0
                • V
                  viktor_g Netgate @Rai80
                  last edited by May 9, 2021, 6:19 AM

                  @rai80 said in ntopng on 2.5.0 settings lost after restart service:

                  Since on 2.5.0 when I restart ntopng service all my preferences/settings are gone. Seems like it does a reset of everything.

                  Btw. I use ramdisk for /var/db. Don't know if this has affect.

                  fixed in NTOPNG 0.8.13_10:
                  https://redmine.pfsense.org/issues/11640

                  1 Reply Last reply Reply Quote 1
                  • C
                    ctuchik
                    last edited by ctuchik Apr 11, 2023, 12:06 PM Apr 11, 2023, 12:05 PM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      [[user:consent.lead]]
                      [[user:consent.not_received]]