DX Application Performance Management

 View Only

Windows WMI Perfmon Monitor 

Jul 10, 2015 11:37 AM

Hi

if you need to collect windows wmi metrics and publish it to EM through EPAgent you will find the attached plugin helpful. This plugin runs as a statefull epagent that continuously queries for WMI metrics. The WMI metrics can be specified using the XML file. The xml gives you lot of flexibility by allowing you to specify data type, multiple instance of the counter etc. With the ability to specify data type it gives lot flexibility in aggregation.

 

Here is a sample wmi counter that you can specify in xml file

 

<Metrics>

  <Metric>

  <WilyResourceName>Disk</WilyResourceName>

  <InstanceNames>C:;_Total</InstanceNames>

  <WilyMetricName>% Free Space</WilyMetricName>

  <WilyDataType>LongCounter</WilyDataType>

  <CounterPath>\LogicalDisk(*)\% Free Space</CounterPath>

  <Description>Windows disk metric with multiple instances</Description>

  </Metric>

  <Metric>

  .....

 

 

The plugin is written in Powershell.

 

deploy the agent under c:\EPAgent and make following changes to properties file

 

introscope.epagent.plugins.stateful.names=POWERSHELL

introscope.epagent.stateful.POWERSHELL.command=powershell -File C:\\EPAgent\\epaplugins\\windows\\WMI\\WindowsEPAPlugin.ps1

 

its been tested for 9.5,9.6,9.7

 

If you find any issue pls make changes and upload it for others benefit

 

Hope you find it useful

 

thanks

Statistics
0 Favorited
2 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
WMI.zip   3 KB   1 version
Uploaded - May 29, 2019

Tags and Keywords

Comments

Jul 10, 2015 12:55 PM

Thanks Srikant, this is very timely as we have a need for this.

Jul 10, 2015 12:30 PM

This is also available on CA APM Developer GitHub: CA-APM/ca-apm-fieldpack-windows-wmi · GitHub

Related Entries and Links

No Related Resource entered.