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

Creating a sensor for a process

Votes:

0

Hi

How do you create a process sensor that looks at the commandline (startup parameters for the process) and not the exe file?

have mutible processes that runs with the same .exe file, so the only way to select the ones i want to monitor is to look at the commandline.

are there an easy way to do this?

Regards Christian Grevsen, Mark Information

custom-sensor process sensor wmi

Created on Sep 4, 2018 8:42:39 AM



2 Replies

Votes:

0

Hello Christian,

I'm afraid we have no sensor for this particular scenario, as the WMI Process Sensor's query for example is only able to retrieve the name of a process, but not the eventually applied bunch of parameters that were used to start it.

Kind regards,

Erhard

Created on Sep 4, 2018 12:04:32 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

Hi Christiaan,

Using the Win32_Process class you can write your own Custom Sensor retrieving various process info based on the process name and command line parameters.

The WMI querie could be beased on something like:

select * from win32_process where name = "my_processname" and commandline = "my_parameters"

Created on Sep 6, 2018 1:37:12 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.