Ntop not creating correct ntop.sh file on reboot
-
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…
-
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.
-
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!
-
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.
-
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.
-
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.
-
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.
-
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.
-
Thank you! That did the trick
-
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; -
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?
-
I've updated to Aug 1 firmware but this didnt solve the problem.
Thank you.
-
Are you using IPv6 code?
-
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.