Hi, I try to configure a REST Custom Sensor but I have an error when I try to check the sensor : Cannot load endpoint https://myurltotheapi: expected status 200 OK but got 405 Method Not Allowed.

I configure the sensor with these parameters :

  • POST
  • a JSON data to send
  • HTTPS protocol
  • acceptall certificats
  • No authentification
  • use a personolize header (Content-Type:application/json)
  • My REST URL request

I don't understand why my sensor doesn't work. Can somebody help me or give me advice to configure the rest custom sensor.

I would like to use PRTG to survey all my REST api and re-use the rest custom sensor. Thanks J


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

It sounds as if the endpoint doesn't like the POST operation. Are you able to perform the query/request using cURL or powershell? Or do you also get a HTTP 405 this way?

Best Regards,
Luciano Lingnau [Paessler Support]


Aug, 2018 - Permalink