远程进程/应用程序监控的示例代码

发布于 2024-09-24 15:41:39 字数 314 浏览 4 评论 0原文

我只是

在这里寻找一些灵感,一位客户要求我构建一个简单的远程进程监控应用程序,当受监控的进程出现故障或恢复在线时,该应用程序具有 smtp 通知功能。任何人都可以向我指出一些示例代码的方向来帮助我开始。我简要地将 .net 远程处理视为一种潜在的开发路径,根据我对其工作原理的理解,远程处理架构将需要客户端和远程服务器组件(尽管我对此不是 100% 确定),但是如果是这种情况,那么它就不符合要求,因为基本要求之一是不能在要监视的服务器上部署其他软件。

或者,如果您知道现有的“轻量级”成品可以提供此类功能,那么这也可能有效。

亲切的问候

保罗·J.

All

I am looking for a bit of inspiration here, a client has requested me to build a simple remote process monitoring application with capability for smtp notification, when monitored processes go down or come back on-line. Can anyone point me in the direction of some sample code to get me started. I have briefly looked at .net remoting as a potential development path, from my understanding of how this works, the remoting architecture would require both a client and remote server component, (though I am not a 100% sure on this one), however if this is the case, then it will not fit the bill, as one of the fundamental requirements is that no additional software can be deployed on the servers which are to be monitored.

Alternatively, if you know of a finished 'lightweight' product out there, which would deliver this sort of functionality then this would probably work as well.

Kind Regards

Paul J.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

卷耳 2024-10-01 15:41:39

Net-SNMP 现在实际上具有监视进程并发送通知的能力。如果您查看 snmpd.conf 手册页 (http://www.net-snmp.org/docs/man/snmpd.conf.html) 下的“进程监控”(http://www.net-snmp.org /docs/man/snmpd.conf.html#lbAR)和“disman event-mib”支持(http://www.net-snmp.org/docs/man/snmpd.conf.html#lbAX)来获取这两个您需要的功能。还有通知发送支持(http://www.net-snmp.org/docs/man/snmpd.conf.html#lbAW)。

我不记得 Windows 对它的支持以及它的工作效果如何(看起来你的目标是 Windows)。

Net-SNMP actually has the ability to monitor processes and send out notifications now. If you look in the snmpd.conf manual page (http://www.net-snmp.org/docs/man/snmpd.conf.html) under "process monitoring" (http://www.net-snmp.org/docs/man/snmpd.conf.html#lbAR) and "disman event-mib" support (http://www.net-snmp.org/docs/man/snmpd.conf.html#lbAX) to get the two features you need. Also the notification sending support (http://www.net-snmp.org/docs/man/snmpd.conf.html#lbAW).

I don't remember the windows support for it and how well it works though (it looks like you're aiming for windows).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文