数据检索/存储和绘图解决方案选择
我们公司需要建立一些解决方案,使我们能够从电气设备中获取几乎实时(1 秒间隔)数据。目前,我们使用的是 Cacti,它允许最低读取间隔为 1 分钟。
对于这种情况,您的软件解决方案建议是什么,考虑到数据是通过 SNMP、XML 或 Web 界面检索的(有多个设备,每个设备都有不同的数据检索方法),而我的知识涵盖 HTML\PHP\JavaScript 编程能力。由于 *nix CRON 至少只能处理 1 分钟的间隔,因此应该有一些工具或解决方案可以自行“询问”。我看到的唯一解决方法是编写一些 JavaScript,即每秒重新加载,触发服务器端代码。
也许,有一些现成的解决方案,比如 RRDTool,或者也许,使用普通的 MySQL+Graph 库(Google 等)就可以完成这项工作?
Our company have a need to set up some solution, that would allow us to grap almost live (1 second interval) data, from electrical equipment. Currently, the thing we are using, is Cacti, which allows lowest read interval to 1 minute.
What would be your software solution suggestion, for such a situation, considering, that data is retrieved by SNMP, XML or web interface (ther's more than one device, each with different data retrieval method) and my knowlage covers HTML\PHP\JavaScript programming capabilities. As *nix CRON can handle only 1 minute intervals as minimum, there should be some tool or solution, that could "ask" by itself. Only workaround I see, is to code some JavaScript, that is reloading every second, triggering server-side code.
Maybe, there are some ready-solutions like RRDTool or maybe, using ordinary MySQL+Graph library (Google, etc) will do the job?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有时间序列数据,RRDTool 是最佳解决方案。但为此您需要 RRDTool 知识。
RRDTool 允许数据/每秒。但 Cacti 可以在 *nix cron 上工作。并且 cron 至少每 1 分钟运行一次(如果我错了请告诉我)。为此,您需要一个特殊的编码。
If you have a time-series data, RRDTool is the best solution for this. But you need RRDTool knowledge for this.
RRDTool allows data/per second. But Cacti works over *nix cron. And cron works at least every 1 minute (tell me if im wrong). You need a special coding for that.