JSON with an HTTP XML REST sensor
Modified on 2025-06-10 16:01:26 +0200
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.
Important: We no longer maintain this article. The information might be out of date.
Hi all,
I'm trying to query a value in JSON with an HTTP XML REST sensor.
The queried URL returns the value without login: message "Only authenticated users can access the REST API." I expect and want to test that.
However, the sensor expects a successful login and returns: Expected Status 200 OK, but 401 Unauthorized. Can I move the sensor to reflect the specified JSON value without logging into the website? The whole thing is to check if the API of a WordPress website is open without logging in.
I hope I have expressed myself clearly.
greetings
Daniel
Article Comments
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.
Hm, that's difficult, because we treat everything except 200/201 as warning/down. Perhaps you can use this script as a starting point to evaluate the page with a custom PowerShell Sensor?
Nov, 2019 - Permalink