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

Dynamic Custom Units EXEXML Sensor

Votes:

0

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



1 Reply

Votes:

1

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]




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.