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

JSON with an HTTP XML REST sensor



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

json rest-api xml

Created on Nov 7, 2019 10:50:52 AM

1 Reply



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?

Created on Nov 7, 2019 11:36:29 AM by  Stephan Linke [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.