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

Custom Sensors Result with Unit and Decimal



Hi, we are returning a xml result as a custom sensor. The result looks ike this: <?xml version="1.0" encoding="Windows-1252"?> <prtg> <result> <Channel>Duration</Channel> <Float>1</Float> <DecimalMode>2</DecimalMode> <Value>12,565</Value> <Unit>TimeSeconds</Unit> </result> </prtg> But the result is not shown as "sek.", only as floating. How to show the result as "12,57 Sek."?

custom-sensor prtg unit

Created on Dec 16, 2020 10:40:33 AM

1 Reply




"float" overwrites the unit here.

As alternative you can use a custom unit string, but this means that no automatic conversion to hours etc.

Created on Dec 21, 2020 12:05:02 PM by  Arne Seifert [Paessler 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.