New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


Creating a sensor for a process

Votes:

0

Your Vote:

Up

Down

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



2 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  PRTGToolsFamily [prtgtoolsfamily.com] (12,615) 3 4



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.