询问者
BizTalk WMI class for Performance counter的问题?

问题
-
客户需要在whatsup gold上面监视biztalk的运行状况, whatsup gold只支持 wmi 和 snmp , 所以想用WMI 来实现BIZTALK运行状况的监视.
现在的问题是: 从已知的WMI class中, 只有 MSBTS_HostInstance 可以获得biztalk service的运行状况, 其他的比如有多少消息在运行, 有多少消息在suspended状态, 就没有相应的WMI class了.
我试着找了些资料, 说可以从Win32_PerfFormattedData 相似的类获得 performance counter的数值, 但是从biztalk server上, 没有找到适用于biztalk 的 performance 类.
有哪位遇到过相似的问题吗?
全部回复
-
你要的是实时的数据吗?BizTalk的监控用的是微软的MOM。如果需要开发的话,是否可以用C#直接去访问计数器的值。以下是从CSDN引用过来的代码。
performanceCounter组件调用本地计算机的计数器代码如下:
this.performanceCounter1.CategoryName = "Processor";//CPU
this.performanceCounter1.CounterName = "% Processor Time";//CPU百分比
this.performanceCounter1.InstanceName = "_Total";
performanceCounter1.NextValue();//返回经过计算的CPU使用百分比
performanceCounter组件调远程计算机的计数器代码如下:
this.performanceCounter1.CategoryName = "Processor";//CPU
this.performanceCounter1.CounterName = "% Processor Time";//CPU百分比
this.performanceCounter1.InstanceName = "_Total";
this.performanceCounter1.MachineName = "";//设置远程主机IP
performanceCounter1.NextValue();//返回经过计算的CPU使用百分比