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
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