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
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
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)
Apr, 2015 - Permalink
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?
Apr, 2015 - Permalink