Re: Adding interfaces to already running instance of ntopng

Simone Mainardi <[email protected]>
Newsgroups gmane.linux.ntop.general
Message-ID <[email protected]>
Martin,

> On 26 Mar 2018, at 17:11, Martin Drašar <[email protected]> wrote:
> 
> Hi,
> 
> moving on with my scenario, I have decided to just prepare a bunch of
> network interfaces before starting ntop and do not use virtual
> interfaces at all.
> 
> This worked well, but after some time I hit this error:
> 
> Too many interfaces (54): discarded XXXXXX
> Hint: reset redis (redis-cli flushall) and then start ntopng again
> 
> I know that there is a preset limit in the source for 48 interfaces and
> I could change it, but the thing is, I am not using that many
> interfaces. I just tested some name changes and ntop seems to be keeping
> the links between old names and ids and any new interface I add, its id
> gets incremented.

Yes, this is normal and is the expected behavior. ntopng must uniquely identify and remember interfaces it has seen, even across restarts. Silently re-using ids would cause data from different interfaces to be mixed unpredictably.

> Even though I flushed the redis database and even
> deleted the contents of /var/tmp/ntopng.
> 
> How should I convince ntop to start with clean slate?

to start clean:
- stop ntopng
- redis cli flushall
- rm -rf /var/tmp/ntopng
- start ntopng


Simone

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

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.