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

Sensor Cloud HTTP v2 - "HTTP Response Code" turns to percent when the time window is in days




The sensor of "Cloud HTTP v2", when viewed in the time window of "Live Data" shows as a numeric value of the HTTP response code (e.g. 200, 500, etc.), which is fine and shows well on the graph.

But, when the view is based on days, e.g. 2 days, 30 days or 365 days - it turns to be percent based, which I don't get the meaning of it this way.

I read the manual for this sensor but didn't find any explanation for this there.

Can someone explain this?

cloud http prtg response-code

Created on Mar 1, 2022 8:35:42 PM

3 Replies




By default this sensor is using a lookup file. So the "live Data" tab should show a string instead of the numerical value. Assuming the HTTP Response Code is 200, the live data-tab should show "OK". If it shows a numerical value instead, please check if a lookup file is selected in your channel settings.

On the 2 days, 30 days, and 365 days tabs on the other hand, PRTG always displays average values of the corresponding time span. If this average was an ordinary number, this would be easy. However, in case of the Cloud HTTP Sensor we are talking about a string ("OK") status and not a numeric value.

As an example: Let's assume your sensor showed "OK" twice and "Error" once within the last 2 days. PRTG would now need to create a average value - which is not really possible in this case without numeric numbers. Therefore PRTG uses the desiredValue attribute from the lookup file instead to calculate a percentage value.

In case of the Cloud HTTP sensor, the percent value in the 2 days graph of PRTG tells you how many percent of the time, sensor was "OK" (HTTP Response Code 200).

Created on Mar 4, 2022 8:45:37 AM by  Timo Dambach [Paessler Support]



Thank you Timo!

1. Please, if you are a Peassler employee - please ask for someone to create and official and public KB for this, or elaborate about this in the sensor's details description article.

2. Let me see if I got this correctly for the sensor of "Cloud HTTP v2":

HTTP Response Code: Basically it is the numeric well-known HTTP response code (e.g. 200 = OK) In "Live Data" it shows on the graph the actual numeric value In X days sections it turns to be a percent (%) value and it simply shows a value of zero (0%) constantly, as if it does not calculate any trend of this value, as there is no meaning for doing so for numbers that represent very different things. So, since this attribute is not relevant in X days sections - better either remove it entirely in these sections, or show it but disable it and mark it as "N/A" and don't show it on the graph.

PRTG Cloud Response: A simple "On/Good/Working" or "Off/Bad/NotWorking" mark. In "Live Data" is shows either 1 (Working) or 0 (Not working) and in X days sections it shows these numeric values in percentage over time, between 100%, Working, to below that for non-working times

Is it so?

Created on Mar 4, 2022 12:00:34 PM



1) This is also already explained in more detail here: https://kb.paessler.com/en/topic/73062. This behavior applies to all sensors using strings.
2) Assuming the "Live-Data" shows "OK" permanently, the "x days" sections will show 100% for the corresponding channel. If the channel shows "Error" once in the "live-data"-tab, the percentage value in the "x days" section will drop, because it was no longer 100% ok for this time span. I'm afraid this behavior cannot be changed.

Created on Mar 7, 2022 2:12:24 PM by  Timo Dambach [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.