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

TimeSeconds channel unit does not work properly with Float

Votes:

1

Hello

TimeSeconds channel unit is not properly processed when the Unit is Float. Is this intentional?

Sensor

Sensor code:

Write-Host @"
<prtg>
	<result>
		<channel>Good</channel>
		<value>8192</value>
		<Unit>TimeSeconds</Unit>
	</result>
	<result>
		<channel>Bad</channel>
		<value>8192</value>
		<Unit>TimeSeconds</Unit>
		<Float>1</Float>
	</result>
	<result>
		<channel>Bad Also</channel>
		<value>8192.35</value>
		<Unit>TimeSeconds</Unit>
		<Float>1</Float>
	</result>
	<result>
		<channel>Good2</channel>
		<value>956849</value>
		<Unit>TimeSeconds</Unit>
	</result>
</prtg>
"@

PRTG:

PRTG Version	PRTG Network Monitor 22.1.75.1594 x64
Auto-Update Status	Version 22.1.75.1594 successfully installed
Operating System	Microsoft Windows Server 2019 Standard Evaluation (10.0 Build 17763), 2 CPUs (Double x64 Model 45 Step 6), code page "Windows-1252", on VMware
Server Time	04.04.2022 15:14:02 (Central Europe Standard Time)
Server CPU Load	3%
User Name	PRTG System Administrator
Active User Sessions	PRTG System Administrator
Browser	Apple Safari Google Chrome (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36)

bug custom-sensors prtg

Created on Apr 4, 2022 1:15:03 PM



1 Reply

Votes:

0

Hell Jakub,
thank you for your KB Post.

That is intentional indeed, the time units only work with integers. It's not intuitive but you can use TimeResponse as unit if you need more precision than a second. Think of TimeResponse as milliseconds. You can see a sensor example that uses it here.

Best Regards,
Luciano Lingnau [Paessler]

Created on Apr 8, 2022 9:13:57 AM by  Luciano Lingnau [Paessler]




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.