What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

WMI Process Wildcard

Votes:

0

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?

snmp wmi wmiprocesssensor

Created on Sep 9, 2015 2:35:40 PM



2 Replies

Votes:

4

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

Created on Sep 10, 2015 2:39:09 PM



Votes:

4

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/

Created on Sep 10, 2015 3:12:03 PM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.