通过 SNMP 监控 Apache Karaf/OSGi 应用程序
我们正在构建 OSGi(特别是在 Equinox 上使用 Apache Karaf)应用程序,这些应用程序需要交付到通常使用基于 SNMP 的监控工具的客户环境中。任何人都可以建议一个具有成本效益的(开源是理想的,但必须使用我们可以作为我们的商业产品的一部分提供的许可证)框架/包来支持 SNMP?避免 SNMP API 渗透到我们部署的应用程序包中的优点(我宁愿让我们的开发人员定义 JMX MBean)。我们的客户可能会规定我们需要插入部署的监控系统,但我们使用 Nagios 进行内部测试,因此进一步指出了 nagios 友好的解决方案。
We are building OSGi (particularly using Apache Karaf on Equinox) applications that need to be delivered into customer environments that commonly employ SNMP based monitoring tools. Can anyone suggest a cost effective (Open source is ideal, but has to use a license that we can ship as part of our commercial offering) framework/package that will support SNMP? Bonus points for avoiding SNMP API bleeding into the applications bundles we deploy (I'd rather have our developers define JMX MBeans instead). Our customers may dictate the monitoring system we need to plug into for deployment, but we use Nagios for internal testing, so further points for nagios-friendly solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前,Github 上正在努力为 karaf Web 控制台创建一个 Web 控制台扩展,它将主动监视 Karaf MBean 并以类似于 JVisualVM 的方式显示它们。截至目前,由于 karaf Web 控制台重写为使用 Pax-Wicket,这项工作已基本停止。这项工作已基本完成,因此 jmx-webconsole 将重新启动并在 pax-wicket 中重写。作为这项工作的提交者,我将添加通过 snmp 发布 jmx mbean 信息的功能。请让我确切地知道您希望在此看到什么。如果我们可以在 jmx-webconsole 之外提供 SNMP 支持,我也会考虑。
Currently on Github there is an effort to create a webconsole extension for the karaf webconsole that will actively monitor Karaf MBeans and display them in a manner similar to JVisualVM. As of now, that effort has largely been halted due to the rewrite of the karaf webconsole to use Pax-Wicket. That effort is largely completed, so the jmx-webconsole will be rebooted and rewritten in pax-wicket. As committer on that effort, I am going to add the ability to publish jmx mbean information via snmp. Please let me know exactly what you'd expect to see as part of this. If we can provide SNMP support outside of the jmx-webconsole, I'd also consider that.
您可以检查 OSGi 上的监视器规范,因此所有捆绑包都会公开其可监视对象,并且您需要实现一个将可监视对象公开为 snmp 或您需要的任何协议的捆绑包。
此链接引用 API https://osgi.org /javadoc/r4v41/org/osgi/service/monitor/package-summary.html
You could check the monitor specification on OSGi, so all the bundle expose their monitorable object and you need to implement a bundle that expose the monitorable object as snmp or whatever protocol you need.
This links references at the API https://osgi.org/javadoc/r4v41/org/osgi/service/monitor/package-summary.html