首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当ntop重新启动时,ntop计数器被重置,所有的状态都消失了。

当ntop重新启动时,ntop计数器被重置,所有的状态都消失了。
EN

Server Fault用户
提问于 2010-09-20 14:04:52
回答 3查看 4.5K关注 0票数 4

我正在使用Ntop 3.3-13收集有关网络使用情况的统计数据.

当Ntop重新启动时,所有计数器被重置,Ntop流量统计页面开始显示从一开始的输出。

我怎样才能防止这种情况发生呢?如何在Ntop上启用持久存储?

EN

回答 3

Server Fault用户

发布于 2011-10-19 10:24:26

不,不能将数据保存在重新启动之间。ntop将其数据保存在内存中,并在重新启动时丢失。您可以使用rrd文件来保存更长时间的数据,但是没有办法让ntop简历包含它上次运行时所拥有的所有数据。

也许可以试试nprobe?

前面的响应提到了-S,如果您检查手册页,就会发现-S不再是一个有效的选项。

票数 4
EN

Server Fault用户

发布于 2011-10-19 14:01:24

看看这个:http://prdownloads.sourceforge.net/ntop/rrdandntop.pdf

票数 0
EN

Server Fault用户

发布于 2010-09-20 18:25:21

来自ntop 常见问题

代码语言:javascript
复制
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选项对你有用?

票数 -1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/182842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档