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

How do you obtain the URL of a sensor through the API

Votes:

0

I have a few hundred URL sensors that need their IP changed, however the URLs are different between the sensor.

Instead of trying to go through all of these sensors by hand, I'm trying to use the API to locate them, programatically change the URL, and submit the changes back up through the API, however I seem to be able to obtain basically every bit of information about the sensor, except for it's monitored URL.

The URL stub I'm currently using to pull the list of sensors is :: /api/table.json?content=sensor&output=json&columns=objid,probe,group,device,sensor,status,message,value_,host,baselink,type,basetype

Not sure what additional columns are available that would make this possible.

api http-sensor prtg

Created on Feb 20, 2015 12:47:02 PM



1 Reply

Accepted Answer

Votes:

0

After spending a few hours going back and forth between the documentation, trial and error, and various other online searches, I was finally able to locate a very small blurb that hinted at what I was looking for. And gave me enough direction to fill in the rest of the blanks.

The API URLstubs I ended up needing are: - /api/getobjectproperty.htm?id=<sensor>&name=xmlurl&show=text - /api/getobjectproperty.htm?id=<sensor>&name=httpurl&show=text

(I tried editing this thread to put the above text in the main item and change the subject to SOLVED, however after 3 attempts, all resulting in an error page, I gave up)

Created on Feb 23, 2015 12:41:36 PM




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.