Windows 2003 SP2 WMI Win32_PerfRawData_W3SVC_WebService Timeout Workaround
I noticed when adding a WMI performance counter i couldn't get the Webservice details. It gave me after long time a error. It was only by the Webservice instance, the rest of the WMI counters worked perfectly.
After digging i noticed that the listattributes.vbs is passing 'null' to the WMI counter and that resulted in a time out. By replacing the 'null' value by a '-' i recieved details from listattributes. So i came up with the following workaround. I just wanted to share it with you in case someone else has problems adding the Webservice counter under OpManager.
In ManageEngine\OpManager\conf\application\scripts\listattributes.vbs
Under Case 5 replace the following
strComputer = Wscript.Arguments(0)
strUsername = Wscript.Arguments(1)
strPassword = Wscript.Arguments(2)
strClass = Wscript.Arguments(3)
instance = Wscript.Arguments(4)
With
strComputer = Wscript.Arguments(0)
strUsername = Wscript.Arguments(1)
strPassword = Wscript.Arguments(2)
strClass = Wscript.Arguments(3)
if Wscript.Arguments(3) = "Win32_PerfRawData_W3SVC_WebService" Then
instance = "-"
Else
instance = Wscript.Arguments(4)
End if
New to ADSelfService Plus?