我正在使用Ntop 3.3-13来收集关于networking使用情况的统计数据。
当Ntop重新启动时,所有的计数器都被重置,Ntop的stream量统计页面开始显示从头开始的输出。
我怎样才能防止这种情况发生? 如何在Ntop上启用持久性存储?
不,你不能保持重新启动之间的数据。 ntop将其数据保存在内存中,并在重新启动时丢失。 您可以使用rrd文件来保持数据更长的时间,但无法使用上次运行的所有数据恢复。
也许尝试nprobe?
以前的回应提到-S ,如果您检查手册页,您将看到-S不再是一个有效的选项。
看看这个: http : //prdownloads.sourceforge.net/ntop/rrdandntop.pdf
从ntop FAQ :
Q. I start ntop with "-S 2" in order to store traffic statistics. Unfortunately when I restart ntop the stats are gone. What's wrong? A. "-S" enables ntop to store on the disk host traffic statistics. This means that is host XYZ was seen by ntop in a previous run, the host traffic statistics are stored on disk so that the next time ntop is restarted (or if the entry was purged from memory and needs to be resurrected) the host information is not empty but the traffic statistics start from the data saved on disk. Note that hosts are resurrected *only* when ntop sees traffic for such hosts. This means that when you restart ntop you *won't* see all the hosts ntop saw when it stopped, but ntop populates its memory as usual with the difference that host statistics won't start from scratch but from the saved data.
也许-S选项适合你?