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

Dynamic Custom Units EXEXML Sensor

Votes:

0

Your Vote:

Up

Down

Hi,

is it possible to change the unit of an XML Sensor channel dynamically by using a variable?

Like this:

echo " <result>" echo " <channel>Name</channel>" echo " <value>" $bytescopied "</value>" echo " <unit>Custom</unit>" echo " <customUnit>" $bytescopiedVAR "</customUnit>" echo " </result>"

when PRTG runs the script for the first time all works well and unit is equal to the variable but if the script changes the value of the variable the unit does not change.

custom-script-exe custom-unit exe-script-sensor exexml powershell prtg script sensor xml

Created on Mar 18, 2021 2:31:06 PM by  MoreQuestion (50) 1 1



1 Reply

Votes:

1

Your Vote:

Up

Down

Hello, the unit type is set at the channel level manually, the PRTG doesn't change the unit dinamically if the variable unit changes.

Created on Mar 22, 2021 11:37:07 PM by  Jonathan Mena [Paessler Technical Support]



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.