Hi Daniel,
It sounds like your API request is malformed
The syntax of an API request for a single sensor is as follows
https://prtg.example.com/api/table.xml?content=sensors&columns=objid,name,probe,group,favorite,lastvalue,device,downti
me,downtimetime,downtimesince,uptime,uptimetime,uptimesince,knowntime,cumsince,lastcheck,lastup,lastdown,minigraph,sche
dule,basetype,baselink,notifiesx,intervalx,access,dependency,position,status,comments,priority,message,parentid,tags,ty
pe,active&count=*&filter_objid=1001&username=prtgadmin&password=password
The filter_objid filter specifies the ID of the object to retrieve. In this example, this retrieves the XML for the single sensor with ID 1001
If you are using PowerShell, you can also do this a lot easier with PrtgAPI
Get-Sensor -Id 1001
Regards,
lordmilko
Add comment