What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Your Vote:

Up

Down

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 by  Mangar (140) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

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 by  PRTG Tools Family [prtgtoolsfamily.com] (13,263) 3 4



Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.