I am trying to set up a sensor to give me the number of instances certain processes that are running. There are about 20 different versions of this process, but we want a single count. Is there a wildcard option?

For example, I have processes name "Process - 1", "Process - 2", "Process - 3"

Can I put something like "Process*" to get all the similar named processes?


Article Comments

Hi gmilton

Use Powershell.

Get-Process -Name f*

Returns all Processes starting with f*

A sample powershell script would be

$pr = get-process -name f* | measure
$pr.count

use the PRTG manual how to define the returnvalue

cheers Thomas


Sep, 2015 - Permalink

btw I forgot. If you really need to use WMI. You have to use % as wildcard or depending how you search NAME LIKE

good examples http://blogs.msmvps.com/richardsiddaway/2011/12/12/wmi-likes-wildcards/


Sep, 2015 - Permalink