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.
Add comment