Since a few weeks my template "allnet.template" I am using to monitor my temperature sensors does not work anymore with the PRTG Rest Custom Sensor.

The current one gives an error: Could not create channel Berlin hpa: expected number but got error (string).

Does anyone have an advice how I can solve it? Here is the contents of the template file:

{  
   "prtg":{  
      "result":[  
         {  
            "value":{$[#0].name : $[*].value
            },
			"float":1
         }
      ]
   }
}

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.

Hello,

Thank you for your message.

To investigate on the origin of the issue, can you please enable the logs of the sensor by selecting the option Store result in its settings tab and then wait until the next interval for PRTG to generate them.

Afterwards, you should find the log files under [data path]\Logs\sensors where the data path is displayed in PRTG Administration Tool on the probe server.

I also invite you to execute the request manually with the same parameters as defined in the settings and check the response provided by the target device. For example, the latter could have been changed with an update and therefore do not match the template used anymore.

Regards.


Dec, 2021 - Permalink