Hi Tom On 06 Aug 2014, at 06:51, Loudpedal Labs <[email protected]> wrote:
> I’m using the latest version from svn. Two quick questions: > > What is the “approved” way to shutdown down ntopng running as a daemon? > “ntopng stop”, or something similar? Yes, you can use the init.d script to start, stop or check the status of ntopng as follow: root@nbox-ubuntu:~# ntopng -e 06/Aug/2014 07:30:48 [Prefs.cpp:545] Logging into /var/tmp/ntopng/ntopng.log 06/Aug/2014 07:30:48 [Ntop.cpp:565] Setting local networks to 192.168.1.0/24,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32,127.0.0.0/8 06/Aug/2014 07:30:48 [Redis.cpp:74] Successfully connected to Redis 127.0.0.1:6379 06/Aug/2014 07:30:48 [Ntop.cpp:539] Parent process is exiting (this is normal) root@nbox-ubuntu:~# service ntopng status ntopng running as 32342 root@nbox-ubuntu:~# service ntopng stop Stopping ntopng Please note that this scrip is base on the configuration file /etc/ntopng/ntopng.conf. > > I’ve been testing an installed instance and I’m ready to put it into > production. How do I wipe all the accumulated data so that when it goes into > production all the old data from testing will be gone? In order to clean all historical/accumulated data, you have to remove the data directory and cleanup the redis as follow: Filippos-MacBook-Pro:~ fontanellif$ redis-cli 127.0.0.1:6379> FLUSHALL OK 127.0.0.1:6379> FLUSHDB OK 127.0.0.1:6379> exit Filippos-MacBook-Pro:~ fontanellif$ rm -rf /var/tmp/ntopng/ Where /var/tmp/ntopng/ ad the default data directory. > > One last one - the default location of a config file is /etc/ntopng/ - > correct? Yes, it is. You have to create a ntopng.conf file BTW if you are using ntopng on Ubuntu or Centos, you can install the nbox gui (http://www.nmon.net/packages/) in order to easily configure, start and stop ntopng and the other ntop application. > > Thanks very much. > > - Tom Filippo > _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
