Announcement

Collapse
No announcement yet.

Exchange Server 2007 monitoring using WMI script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exchange Server 2007 monitoring using WMI script

    Hi All,

    I'd like to know if anyone here have WMI script to monitor Exchange Server 2007 ?
    according to the following article yes it is possible: http://blogs.msdn.com/b/exchangefaqs...aces-apis.aspx
    and also here:http://www.paessler.com/manuals/prtg...007_sensor.htm

    My goal is to be able to integrate my 3rd party monitoring software which currently uses WMI (not Paessler but eMite) to query each server service and I wonder if anyone can share your script here.

    the following script can generate the whole lot of classes but I'm not sure how to use it:
    Code:
    strComputer = "ExCluster01"
    nSpace = "\root\cimv2"
    Set objSWbemServices = GetObject("winmgmts:\\" & strComputer & nSpace)
     
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
     
    Set colClasses = objSWbemServices.SubclassesOf()
    For Each objClass In colClasses
     WScript.Echo objClass.Path_.Class
     Set colProperties = objClass.Properties_
      For Each objProperty In colProperties
       WScript.Echo vbTab & objProperty.Name
      Next
    Next
    Thanks,
Working...
X