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

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