远程进程/应用程序监控的示例代码
我只是
在这里寻找一些灵感,一位客户要求我构建一个简单的远程进程监控应用程序,当受监控的进程出现故障或恢复在线时,该应用程序具有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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).