I had no issues compiling ntopng from source per the README instructions.

Version:
v.2.0.150704 [Community Edition]
GIT rev: dev:9a1a7ecf4db4c2929e202fcc7558c68bc74b94a6:20150704

System:
4.0.5-200.fc21.x86_64 #1 SMP Mon Jun 8 16:25:02 UTC 2015 x86_64 x86_64
x86_64 GNU/Linux

When running ntopng from the command-line with no arguments, or using
the below config file, from the installation directory
(/usr/local/ntopng-2.0), everything seems to work as expected, with no
errors.  However, when running outside the installation directory,
with a configuration file, I cannot seem to get ntopng to initialize.
I get the following error:

[src/Ntop.cpp:194] ERROR: Invalid directory  specified

Looking at the source, this seems to be related to the data directory.
As follows are the contents of /etc/ntopng/ntopng.conf:

-G=/var/run/ntopng/ntopng.pid
--data-dir=/var/ntopng
--httpdocs-dir=/usr/local/ntopng-2.0/httpdocs
--scripts-dir=/usr/local/ntopng-2.0/scripts
--callbacks-dir=/usr/local/ntopng-2.0/scripts/callbacks
--daemon
-i=eth0

The directory I believe might be causing issues:

# ls -alZ /var/ntopng/
drwxrwxrwx. root root system_u:object_r:var_t:s0       .
drwxr-xr-x. root root system_u:object_r:var_t:s0       ..
drwxrwxrwx. root root system_u:object_r:var_t:s0       0
-rw-rw-rw-. root root system_u:object_r:var_t:s0       ntopng.log
# cat /var/ntopng/ntopng.log
04/Jul/2015 14:05:05 [src/Ntop.cpp:194] ERROR: Invalid directory  specified

It can obviously write to the directory (at least as root), and based
on permissions above, shouldn't have any issues writing as the default
user "nobody".  The selinux audit log didn't contain any denials, and
just as a sanity check, I temporarily set the selinux enforce mode to
permissive to no avail.

Any suggestions to get this running are greatly appreciated.

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

Reply via email to