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

Anzahl der Dezimalstellen beim Custom Sensor

Votes:

0

Guten Tag,

ist es möglich, innerhalb der XML-Struktur eines Custom Sensor die Anzahl der Dezimalstellen zu übergeben? Der Tag <DecimalMode> erlaubt nur Auto und All.

Wenn nicht, möchte ich dies gleich als Verbesserung vorschlagen, entweder einen weiteren Tag einzuführen oder dass eine Zahl im Tag <DecimalMode> als Anzahl der Dezimalstellen interpretiert wird.

Viele Grüße

custom-sensor decimal-places xml

Created on Apr 10, 2015 12:00:53 PM



2 Replies

Votes:

0

As this <DecimalMode> Tag would have to be set in the code of you sensor, would it not be possible to simply restrict the number of decimals that you send to PRTG from code?

Created on Apr 10, 2015 3:13:09 PM



Votes:

0

Dear Mangar

Please round the value within the script itself. For Powerscript, the according .Net function to round to two decimal places would be

[System.Math]::Round($value,2)

Created on Apr 13, 2015 10:54:46 AM 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.