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

    New Package: ntopng

    Scheduled Pinned Locked Moved pfSense Packages
    50 Posts 19 Posters 39.2k 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.
    • Y
      yefryf
      last edited by

      Recently I've installed ntopng in my pfsense firewalls and It's really a good tool, thank for the package.

      I am reading and investigation to learn more about this tool and I would like to know if it is possible to upgrade the ntopng's version to 1.2. By the way, when I access to the dashboard it showing the attached message.

      ntopng_v120.PNG
      ntopng_v120.PNG_thumb

      1 Reply Last reply Reply Quote 0
      • C
        Cino
        last edited by

        @jimp thanks again for taking the time to create this package…

        couple of things,

        1 Should we have to worry about this error in the system log?

        
        ntopng: [Prefs.cpp:408] ERROR: Unable to create log C:\Windows\Temp/ntopng.log
        
        

        2 I should read the manaul but there isn't much under the admin menu as far as configuration. I was hoping to re-name the interfaces to laymen names.

        2.1.4-RELEASE (i386)
        built on Fri Jun 20 12:59:29 EDT 2014
        FreeBSD 8.3-RELEASE-p16

        1 Reply Last reply Reply Quote 0
        • M
          Mr. Jingles
          last edited by

          @jimp:

          We can't take direct donations anymore. It's not quite enough for a Gold subscription or I'd say just get one of those. But you can pick up some stuff from the pfSense store with that and you'll get some swag out of it on top of us getting a cut. :-)

          Could I ask, Jim: why can't people donate anymore? I know I did last year, and suddenly it was gone. I bought a Gold to support (and buy you all a beer  ;D ) but I kept on wondering: why did you remove the donations? It is people wanting to show their appreciation, and some money seems better than no money (but then again, this is the stupid economist speaking here: if there is anything we don't understand, it is money  ;D ;D ;D ).

          6 and a half billion people know that they are stupid, agressive, lower life forms.

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by

            Eeehm, sorry for the mildly intelligent question, but: on my nano 2.1.4 boxes there is no ntop or ntopng package available in the list… What's wrong here?  :o

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              @yefryf:

              I am reading and investigation to learn more about this tool and I would like to know if it is possible to upgrade the ntopng's version to 1.2. By the way, when I access to the dashboard it showing the attached message.

              Not until 1.2 shows up in FreeBSD ports. I'm told it's being worked on.

              @Cino:

              1 Should we have to worry about this error in the system log?

              
              ntopng: [Prefs.cpp:408] ERROR: Unable to create log C:\Windows\Temp/ntopng.log
              
              

              I don't think it's worth worrying about

              @Hollander:

              Could I ask, Jim: why can't people donate anymore? I know I did last year, and suddenly it was gone. I bought a Gold to support (and buy you all a beer  ;D ) but I kept on wondering: why did you remove the donations? It is people wanting to show their appreciation, and some money seems better than no money (but then again, this is the stupid economist speaking here: if there is anything we don't understand, it is money  ;D ;D ;D ).

              I don't know the nitty gritty details, but since we're not a non-profit organization, taking donations in that way has some weird tax/legal issues. The beancounters said it caused more trouble than it was worth.

              @chemlud:

              Eeehm, sorry for the mildly intelligent question, but: on my nano 2.1.4 boxes there is no ntop or ntopng package available in the list… What's wrong here?  :o

              ntop isn't compatible with NanoBSD installs, only full installs.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                Too bad!!

                btw: If I had the choice between paying an invoice (including VAT) and giving a donation, I knew which option I would choose… :-D

                1 Reply Last reply Reply Quote 0
                • M
                  Mr. Jingles
                  last edited by

                  @jimp:

                  @Hollander:

                  Could I ask, Jim: why can't people donate anymore? I know I did last year, and suddenly it was gone. I bought a Gold to support (and buy you all a beer  ;D ) but I kept on wondering: why did you remove the donations? It is people wanting to show their appreciation, and some money seems better than no money (but then again, this is the stupid economist speaking here: if there is anything we don't understand, it is money  ;D ;D ;D ).

                  I don't know the nitty gritty details, but since we're not a non-profit organization, taking donations in that way has some weird tax/legal issues. The beancounters said it caused more trouble than it was worth.

                  Right  :P

                  Well it so happens I am a post-academic bean counter ( ;D ), and the thing is:
                  1. I don't know the specifics of US GAAP (Generally Accepted Accounting Principles), theree might be a twist in there, but:
                  2. (Donation/1+ VAT-percentage) (so: 50/1,06 assuming VAT 6%) should do it, at least under IFRS (International Financial Reporting Standards).

                  Of course, neglecting the 'twist' mentioned before.

                  But, to my knowledge, there is no country in the world that forbids companies receiving money that can be taxed both VAT and profit tax.

                  The offset is the paypal fee. Which I believe is 3-5%.

                  Which I would assume would make it worthwile: 50 dollars from me, minnus the VAT, minus the corporate tax, still leaves nett money even when offset against the paypal fee.

                  Sincerely,

                  Sr. Beancounter  ;D

                  6 and a half billion people know that they are stupid, agressive, lower life forms.

                  1 Reply Last reply Reply Quote 0
                  • M
                    muswellhillbilly
                    last edited by

                    Hi,

                    For the record, I think I found out what the problem was with my pfSense installation and this package. I did a bit of digging and found that there had been a previous installation of NRPE on this firewall which had somehow or another failed or been aborted, which must have corrupted the config. When I examined the /cf/conf/config.xml file, I discovered that this installation was still showing in the the 'installedpackages' section. The description for NtopNG was below, but the xml for the associated menu items was completely missing. Editing the config.xml, inserting the relevant xml for Ntop, resolved the problem completely.

                    Thanks for a very useful contribution to the pfSense community!

                    1 Reply Last reply Reply Quote 0
                    • S
                      scotty562
                      last edited by

                      Is it possible to have this program display the bandwidth used per time period?

                      1 Reply Last reply Reply Quote 0
                      • B
                        Brrm
                        last edited by

                        @scotty562:

                        Is it possible to have this program display the bandwidth used per time period?

                        It's possible to get historical views for individual hosts for a predefined date/time range. You'll have to enable historical data storage:

                        1. open a terminal and log in with root account
                        2. open the launch script with an editor:

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

                        3. add "-F" to the last command in the "rc_start()" block, so it should look like this:

                        
                        rc_start() {
                                ldconfig -m /usr/pbi/ntopng-amd64/lib
                                /usr/pbi/ntopng-amd64/local/bin/redis-server --dir /var/db/ntopng/ --dbfilename ntopng.rdb &
                                /usr/local/bin/ntopng -s -e -F --dns-mode '0'  --local-networks '192.168.0.0/16,172.16.0.0/12,10.0.0.0/8' &
                        }
                        
                        

                        4. stop and start ntopng:

                        
                        /usr/bin/killall ntopng
                        /usr/local/bin/ntopng -s -e -F --dns-mode '0' --local-networks '192.168.0.0/16,172.16.0.0/12,10.0.0.0/8' &
                        
                        

                        I haven't been able to get the aggregate on an interface - is that available somewhere? edit: The total data throughput is available at 'Overview'.

                        1 Reply Last reply Reply Quote 0
                        • C
                          Cino
                          last edited by

                          You could edit '/usr/local/pkg/ntopng.xml' so you dont have to edit /usr/local/etc/rc.d/ntopng.sh when you reboot or resave ntopng options in the gui

                          1 Reply Last reply Reply Quote 0
                          • M
                            Mr. Jingles
                            last edited by

                            That is ONE sexy package  :P :P :P

                            (I don't really know what I am looking at, but I am like that bird that likes anything that blinks (Dutch: ekster): this is some interesting 'bling-bling'  to study  ;D

                            (On another note: how comes no site shows up normally in IE, you would have expected MS to understand something now after 35 years and an army of 150.000 employees. Firefox is getting more bloated by the second (2 gigs of RAM currently, for-a-browser?), Chrome is NSA, and  Opera apprently has decided to come a 'living dead').

                            6 and a half billion people know that they are stupid, agressive, lower life forms.

                            1 Reply Last reply Reply Quote 0
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate
                              last edited by

                              @Cino:

                              You could edit '/usr/local/pkg/ntopng.xml' so you dont have to edit /usr/local/etc/rc.d/ntopng.sh when you reboot or resave ntopng options in the gui

                              Adding a new checkbox option to enable that should be simple. I don't have time at the moment but I'll keep it in mind next time I poke at the package.

                              Or someone could add it and submit a pull request.

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • C
                                Cino
                                last edited by

                                @jimp:

                                @Cino:

                                You could edit '/usr/local/pkg/ntopng.xml' so you dont have to edit /usr/local/etc/rc.d/ntopng.sh when you reboot or resave ntopng options in the gui

                                Adding a new checkbox option to enable that should be simple. I don't have time at the moment but I'll keep it in mind next time I poke at the package.

                                Or someone could add it and submit a pull request.

                                funny you brought this up… i'm already on it :-)  might be ugly since i'm not a programmer but sure can copy and paste... hehehehe

                                edit: https://github.com/pfsense/pfsense-packages/pull/771

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Cino
                                  last edited by

                                  Pull request has been accepted and merged. You should see an update for ntopng in Package Manager

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Mr. Jingles
                                    last edited by

                                    I uninstalled it to see if this package perhaps made my box crash. After that, my log is flooded with this:

                                    ntopng: [PeriodicActivities.cpp:83] ERROR: Missing script /usr/local/share/ntopng/scripts/callbacks/second.lua

                                    Literally thousands of these lines, 1 per second it seems.

                                    But it isn't installed anymore  ;D

                                    How might I perhaps fix this?

                                    Thank you  :)

                                    ntopng.jpg
                                    ntopng.jpg_thumb
                                    packages.jpg
                                    packages.jpg_thumb

                                    6 and a half billion people know that they are stupid, agressive, lower life forms.

                                    1 Reply Last reply Reply Quote 0
                                    • jimpJ
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by

                                      The process must not have stopped. Try

                                      killall -9 ntopng
                                      

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Mr. Jingles
                                        last edited by

                                        Worked marvelously, Jim: thank you  ;D

                                        6 and a half billion people know that they are stupid, agressive, lower life forms.

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          farmerpling
                                          last edited by

                                          Errors from system log

                                          This below occurred after I installed and then deinstalled ntopng…

                                          Jan 14 20:33:32 ntopng: [PeriodicActivities.cpp:83] ERROR: Missing script /usr/local/share/ntopng/scripts/callbacks/second.lua
                                          Jan 14 20:33:31 ntopng: [PeriodicActivities.cpp:83] ERROR: Missing script /usr/local/share/ntopng/scripts/callbacks/second.lua

                                          AFTER I installed/deinstalled/installed ntopng, I then go the below in the system log.

                                          Jan 14 20:34:26 ntopng: [Prefs.cpp:408] ERROR: Unable to create log C:\Windows\Temp/ntopng.log
                                          Jan 14 20:34:02 ntopng: [HTTPserver.cpp:332] ERROR: Unable to start HTTP server (IPv4) on port 3000
                                          Jan 14 20:34:01 ntopng: [NetworkInterface.cpp:75] WARNING: No capture interface specified
                                          Jan 14 20:34:01 ntopng: [Prefs.cpp:408] ERROR: Unable to create log C:\Windows\Temp/ntopng.log
                                          Jan 14 20:33:33 ntopng: [Lua.cpp:1461] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/second.lua][/usr/local/share/ntopng/scripts/callbacks/second.lua:8: module 'lua_utils' not found: no field package.preload['lua_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua' no file './lua_utils.lua' no file '/usr/pbi/ntopng-i386/share/luajit-2.0.2/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils/init.lua' no file '/usr/pbi/ntopng-i386/share/lua/5.1/lua_utils.lua' no file '/usr/pbi/ntopng-i386/share/lua/5.1/lua_utils/init.lua' no file './lua_utils.so' no file '/usr/local/lib/lua/5.1/lua_utils.so' no file '/usr/pbi/ntopng-i386/lib/lua/5.1/lua_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Ryu
                                            last edited by

                                            Hello,
                                            i can't use the historical feature. when i try to load historical data after setting interface and time interval i see this error message on the log

                                            ntopng: [Lua.cpp:72] ERROR: ntop_find_interface : expected string, got number

                                            i'm using 2.2-RC x64 release with Intel interfaces.
                                            Has anyone tried this feature?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.