What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Your Vote:

Up

Down

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 by  gmilton (0) 1



2 Replies

Votes:

4

Your Vote:

Up

Down

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 by  Thomas Umbricht (2,820) 3 3



Votes:

4

Your Vote:

Up

Down

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 by  Thomas Umbricht (2,820) 3 3



Please log in or register to enter your reply.


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.