Hi,

As already suggested by James, using a single instance is recommended to
monitor multiple interfaces on the same box. ntopng is also multi-tenant so
you have the option to create users and associate interfaces and networks
to them. In this way you can create non-privileged users that don't have
access to all the traffic.

However, if you still want to run multiple instances on the same box, you
must use for each instance a different:
- redis database id
- data dir
- http port
- pid file

or things will be messed up...


simone

On Fri, Aug 26, 2016 at 11:54 PM, James Lay <j...@slave-tothe-box.net>
wrote:

> On 2016-08-26 15:39, n...@funkpickle.com wrote:
>
>> v.2.4.160818 [Professional Edition]
>> GIT rev:   2.4-stable:d786da67470dd879c5bbe13d38a7f95f2b598626:20160818
>> Pro rev:   r641
>> System Id: 3BB0D75C7A06AB13
>> Built on:  Ubuntu 14.04.5 LTS
>>
>> I am spawning 3 different ntopng instances to monitor different
>> network segments on different ethernet adapters. When launching ntopng
>> it is occasionally not running as the user specified via --user.
>>
>> Launching ntopng via: ntopng /etc/ntopng/this.ntopng.conf
>>
>> Launching using the following config:
>>
>> --daemon
>> --community
>> --http-port 15000
>> --dns-mode 0
>> --interface eth1
>> --disable-login 1
>> --data-dir /opt/ntopng/this
>> --disable-alerts
>> --user ntopng
>> --pid /var/run/this.ntopng.pid
>> --disable-autologout
>> --disable-host-persistency
>> --sticky-hosts none
>>
>> Occasionally it will run as user ntopng and function properly. When it
>> doesn't it launches as root and will not function. I will have to
>> manually kill the proc and relaunch a few times before it will finally
>> run as user ntopng.
>>
>> This issue surfaced when updating from a 2015 community build to 2.4.
>>
>> Has anyone else run into this issue? Any suggestions on how to resolve?
>>
>> Thanks in advance,
>> Nicholas
>> _______________________________________________
>> Ntop mailing list
>> Ntop@listgateway.unipi.it
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>
>
> Three instances..wow.  Any reason you're not running just one instance to
> monitor all three?  I use the below cli options for two:
>
> -i eth0 -i ppp0 -i view:eth0,ppp0
>
> which allows me three "interfaces" to view in ntop, eth0, ppp0, and an
> aggregate of both.  I realize this doesn't address your question at all,
> but I thought I'd throw it out there anyways.
>
> James
>
> _______________________________________________
> Ntop mailing list
> Ntop@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
_______________________________________________
Ntop mailing list
Ntop@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to