New Question
 
 
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 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


Pass values from other sensors to the parameter field in the script sensor

Votes:

0

Your Vote:

Up

Down

Is it possible, that I can get the values from other sensors to the parameter filed in the script sensor (PowerShell)? Through this, I try to pass the values from other sensors to the PowerShell script, that should work with these values.

custom-sensor parameters powershell prtg script

Created on Aug 6, 2020 7:54:31 AM by  SAM_N (0) 1



4 Replies

Accepted Answer

Votes:

1

Your Vote:

Up

Down

Hi there,

You can use the PRTG API to extract values from certain Sensors. For example this API call extracts the values of the Core Health Sensor in JSON:

/api/table.json?content=values&output=json&columns=datetime,value_,coverage&id=1001&noraw=1&usecaption=true

Created on Aug 6, 2020 2:41:22 PM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hi Moritz,

is it also possible to use the PRTG API for getting values from a Sensor into a lookup file? I am trying to create a lookup file that is dependent to the values of two channels. So I want to construct an if-else-structure based on multiple values, that are not just from the channel that is actively using the lookup file.

Created on Aug 10, 2020 9:00:15 AM by  SAM_N (0) 1



Votes:

0

Your Vote:

Up

Down

No this is not possible since lookup files are static files. If you want to cover a range of values, you can use the "range" parameter in your lookup file.

Created on Aug 10, 2020 9:06:55 AM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello Moritz,

thank you for the two replies. They really helped me finding a solution for my primary problem.

Created on Aug 25, 2020 12:33:24 PM by  SAM_N (0) 1



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.