What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. 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

Votes:

0

Your Vote:

Up

Down

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 by  tcpip (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.