A service I have in WCF occasionally goes down due a problem with a COM component. While I am troubleshooting I would like to setup another host to make regular calls to this service to monitor availability.
由于COM组件出现问题,我在WCF中的服务偶尔会出现故障。在我进行故障排除时,我想设置另一台主机来定期调用此服务来监控可用性。
It is slightly more complicated that a simple HTTP call though as the service is secured by SSL and WCF authentication (username / password). I'd also like to be able to parse successful calls to see if they return warning / fail states from my code.
虽然通过SSL和WCF身份验证(用户名/密码)保护服务,但是简单的HTTP调用稍微复杂一些。我还希望能够解析成功的调用,看看他们是否从我的代码返回警告/失败状态。
Would you recommend any monitoring providers for this or is it beyond the simple monitoring they normally provide?
您是否会建议任何监控提供商,或者它是否超出了他们通常提供的简单监控?
Regards
Ryan
1 个解决方案
#1
You could enable WCF logging and auditing facilities either on the server or the client to produce a log of all traffic. Then you can analyze the results using the WCF Service Trace Viewer Tool provided in .NET Framework 3.0 and 3.5 SDK.
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.
您可以在服务器或客户端上启用WCF日志记录和审核设施,以生成所有流量的日志。然后,您可以使用.NET Framework 3.0和3.5 SDK中提供的WCF服务跟踪查看器工具分析结果。在您的情况下,我可能只在消息级别启用日志记录。这将减少最终存储在日志文件中的信息量,并有助于您专注于分析实际从服务中来回发送的数据。
#1
You could enable WCF logging and auditing facilities either on the server or the client to produce a log of all traffic. Then you can analyze the results using the WCF Service Trace Viewer Tool provided in .NET Framework 3.0 and 3.5 SDK.
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.
您可以在服务器或客户端上启用WCF日志记录和审核设施,以生成所有流量的日志。然后,您可以使用.NET Framework 3.0和3.5 SDK中提供的WCF服务跟踪查看器工具分析结果。在您的情况下,我可能只在消息级别启用日志记录。这将减少最终存储在日志文件中的信息量,并有助于您专注于分析实际从服务中来回发送的数据。