简体   繁体   English

是否有用于以与HTTP监视服务相同的方式监视受保护的WCF端点的服务?

[英]Is there a service for monitoring secured WCF endpoints in the same way that HTTP monitoring services do?

A service I have in WCF occasionally goes down due a problem with a COM component. 由于COM组件出现问题,我在WCF中拥有的服务有时会关闭。 While I am troubleshooting I would like to setup another host to make regular calls to this service to monitor availability. 在进行故障排除时,我想设置另一台主机以定期调用此服务以监视可用性。

It is slightly more complicated that a simple HTTP call though as the service is secured by SSL and WCF authentication (username / password). 尽管通过SSL和WCF身份验证(用户名/密码)保护该服务,但简单的HTTP调用要稍微复杂一些。 I'd also like to be able to parse successful calls to see if they return warning / fail states from my code. 我还希望能够解析成功的调用,以查看它们是否从我的代码中返回警告/失败状态。

Would you recommend any monitoring providers for this or is it beyond the simple monitoring they normally provide? 您会为此推荐任何监视提供者,还是超出他们通常提供的简单监视?

Regards 问候

Ryan 瑞安

You could enable WCF logging and auditing facilities either on the server or the client to produce a log of all traffic. 您可以在服务器或客户端上启用WCF日志记录和审核功能,以生成所有流量的日志。 Then you can analyze the results using the WCF Service Trace Viewer Tool provided in .NET Framework 3.0 and 3.5 SDK. 然后,您可以使用.NET Framework 3.0和3.5 SDK中提供的WCF服务跟踪查看器工具来分析结果。
In your situation I would probably enable logging only at the message level . 在您的情况下,我可能仅在消息级别启用日志记录。 This will reduce the amount of information that ends up in the log file and will help you focus on analyzing the data that's actually being sent back and forth from the services. 这将减少最终出现在日志文件中的信息量,并帮助您专注于分析实际从服务来回发送的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM