Hi Thomas,

On 25/03/2015 23:26, Thomas Stegbauer wrote:


Am 25.03.2015 um 18:38 schrieb Arianna Avanzini:
in /etc/ntopng/ntopng.conf is defined: -G /var/run/
The argument to the -G option should be the path to the file itself,
e.g. /var/run/ntopng.pid. Please also note that the PID file is
written after dropping privileges, so it might be that user "nobody"
is not able to write in /var/run. The default directory is instead
/var/tmp.
ok, modified -G=/var/run/ntopng/ntopng.pid
also i gave permission 777 (for test to /var/run/ntopng

Then the startup script is running.
The problem was this line within the function check_ntopng
    [ -f "/etc/ntopng/ntopng.conf" ] && PID_FILE=$(cat /etc/ntopng/ntopng.conf |
grep '\-G='|cut -d '=' -f 2)

i have to check after reboot, if the permissions are correct.

also after switching the monitoring interface from monbr1 to a bridgemember
eth1, it is also working


Thank you for testing that.

best regards
thomas

The permissions are:

ls -al /var |grep run
lrwxrwxrwx  1 root root     9 Mar  4 13:19 lock -> /run/lock
lrwxrwxrwx  1 root root     4 Mar  4 13:19 run -> /run
root@apu:/etc/ntopng# ls -al / |grep run
drwxr-xr-x 13 root root   480 Mar 24 12:59 run

The mystery is, it is working in the beginning for some flows and then
stops.

I agree that's an interesting issue, please do let us know if the
problem persists after providing a correct PID file path as argument
to the -G option.

Thank you,
Arianna

again i can start ntopng by
/usr/bin/ntopng /etc/ntopng/ntopng.conf

But i am unable to start it via startup script.


Are you using sysVinit or systemd? Which startup script are you using?

Thank you,
Arianna



_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop


--
/*
 * Arianna Avanzini
 * [email protected]
 * http://ava.webhop.me
 */
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to