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

REST Custom v2 - Authenticaton on different URL than monitoring Data

Votes:

0

Hey All,

I'm onto Monitoring a bunch vulnerability Data from an internal Website. I have to sign into the API via https://Website/api/v1/auth/signin which in Postman worked but the Data comes from a different URL: https://Website/api/v1/vulnerabilities/summary/

I've used the Request URL with Post and in the Body i've used the login Data Can I add tinto the Channel Path the new URL and add the Data loation, like: https://Website/api/v1/vulnerabilities/summary/$.data.0.2.vuln_count?

Or am I going somewhere completly wrong?

json prtg rest

Created on Aug 10, 2022 2:19:15 PM



1 Reply

Votes:

0

Hello,

if you have a token based authentication you can pass along this token in the custom headers for this sensor.

The Channel Path inside this sensor applies to a JSON Path inside the retrieved data from the base URL, if you want to retrieve JSON data from a different URL you need an additional Sensor.


Kind regards,
Johannes Beyerlein, Technical Support Team

Created on Aug 16, 2022 8:32:13 AM by  Johannes Beyerlein [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.