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

    Ntop not creating correct ntop.sh file on reboot

    Scheduled Pinned Locked Moved pfSense Packages
    18 Posts 3 Posters 6.1k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      There is probably something in the code that isn't saving the multiple interfaces specification into the config right, either that or reading it back right. I'll take a look when I get a chance.

      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

        thanks jimp! Not rush on my part :-) I have a work around for the interfaces, but i need to figure out why ntop isn't stable anymore…

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

          Looks like it was a problem in general with packages and the interface selector. I fixed it up:

          https://github.com/bsdperimeter/pfsense/commit/6108a08ce296ea2643ee6b6297156da8412dcb00

          ntop has been extremely stable for me so far on 2.0 since I got it running, I've never seen it stop abruptly like I did on 1.2.x. Though I am only using it on a single interface.

          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:

            Looks like it was a problem in general with packages and the interface selector. I fixed it up:

            https://github.com/bsdperimeter/pfsense/commit/6108a08ce296ea2643ee6b6297156da8412dcb00

            ntop has been extremely stable for me so far on 2.0 since I got it running, I've never seen it stop abruptly like I did on 1.2.x. Though I am only using it on a single interface.

            Thanks again jimp! I'll try the fix later tonight.

            ntop has been stable for me since you fixed it for 2.0. I was away for most of June with little access to my box and it stayed up the whole time. I would say I was updating my snapshot about once a week from Jan-May with reg gitsync since I'm using the ipv6 code. Once I got home 2 weeks ago, I did an update and its been crapping out every 1-5hrs..

            Its been running strong so far with 1 interface for the last 2 hrs(I usually have 5 bind to it). Do i need all of them, not really…. but I like my stats,lol..... When I have some time, I'll do a fresh install and see if that clears up my issue.

            as always, thanks again!

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

              I manually added the code since its not in the IPv6 codeset yet. Works perfectly! Interfaces stay highlighted now, they weren't before.

              As for my other issue, I think I solved it. I forgot that I inserted my Verizon 3G USB into the router after I got home and added interface ppp0 to the mix. Looking at the logs, Ntop would shutdown shortly after the ppp0 renews. It stayed up all night with all the interfaces expect the ppp0 so far… Lets see what today brings..

              Thanks again

              P.S Would the code you added affect any other plugins? Noticed that impector doesn't keep interface or protocols anymore and I thought it did.

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

                It shouldn't have affected any other packages unless they had some code to work around the fact that the old interface selection was broken. IMspector may have been trying to outsmart the bug.

                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:

                  It shouldn't have affected any other packages unless they had some code to work around the fact that the old interface selection was broken. IMspector may have been trying to outsmart the bug.

                  I think IMspector worked around it, but now it doesn't know what to do:

                  Before the code in my config.xml:

                  
                  ...
                  <iface_array>lan,opt4</iface_array>
                  <proto_array>msn,icq,yahoo,irc</proto_array>
                  ...
                  
                  

                  after the code change, IMspector wont start if I make changes:

                  
                  ...
                  <iface_array>Array</iface_array>
                  <proto_array>Array</proto_array>
                  ...
                  
                  

                  From the system log:

                  
                  Jul 6 10:51:59 	imspector: Good-bye
                  Jul 6 10:51:59 	php: imspector: Stopping service: no interfaces and/or protocols selected
                  Jul 6 10:51:59 	php: imspector: Interface Array has no ip address, ignoring
                  
                  

                  I manually edited config.xml and it starts on startup… Just can't make any changes to via the web interface.

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

                    Hmm, interesting, since the only field name that should have had any change would have been named exactly interface_array, not the others. They should have had the same net effect as before.

                    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
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Found it, I forgot one bit in the change I made.

                      https://github.com/bsdperimeter/pfsense/commit/292b356f8cdaf26b919009f1a1bc51a1ea02166f

                      I pushed all that into the ipv6 fork as well.

                      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

                        Thank you! That did the trick

                        1 Reply Last reply Reply Quote 0
                        • N
                          ncolunga
                          last edited by

                          Hi,

                          I'm having the same problem on 2.0 RC3 amd64 with ntop 4.0.1_1 v2 when i choose two ifs. i've checked pkg_edit.php but it's different to the code you posted.

                          Regards.

                          198:208
                          _$fieldname  = $fields['fieldname'];
                          $fieldvalue = $POST[$fieldname];
                          if (is_array($fieldvalue))
                          $fieldvalue = implode(',', $fieldvalue);
                          else {
                          $fieldvalue = trim($fieldvalue);
                          if ($fields['encoding'] == 'base64')
                          $fieldvalue = base64_encode($fieldvalue);
                          }
                          if($fieldname)
                          $pkgarr[$fieldname] = $fieldvalue;

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

                            @ncolunga:

                            I'm having the same problem on 2.0 RC3 amd64 with ntop 4.0.1_1 v2 when i choose two ifs. i've checked pkg_edit.php but it's different to the code you posted.

                            What snapshot date are you on?

                            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
                            • N
                              ncolunga
                              last edited by

                              I've updated to Aug 1 firmware but this didnt solve the problem.

                              Thank you.

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

                                Are you using IPv6 code?

                                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
                                • N
                                  ncolunga
                                  last edited by

                                  No, but i have done a new install, upgrade to Aug 2 firmware and now everything is ok. It seems to be related some way to my old config backup.

                                  Thank you.

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