When doing a api qry : /api/table.xml?content=devices&output=csvtable&columns=device

I get a incomplete list of devices. Shouldn't it give all the names that are in devices setting field "Device Name" ? Also it would be nice to be able to pull all ip's of devices from the devices setting field "IPv4 Address/DNS Name" .


Article Comments

you can use the following API-Call /api/table.xml?content=devices&output=xml&columns=objid,probe,group,device,host or /api/table.xml?content=devices&output=csv&columns=objid,probe,group,device,host


Apr, 2013 - Permalink

O.k., that only gives me more info (additional fields) on the devices that are listed from my attached api call, but this is not a complete list of devices.


Apr, 2013 - Permalink

I should be getting a result of 653 Devices and Getting a result from the API qry of 504, I verified the # of devices to the the devices backed up in \Application data\Paessler\PRTG Network Monitor\Monitoring Database\ *date*


Apr, 2013 - Permalink

When I go to "PRTG Host"/status.htm?tabid=1 I get the following :

Database Objects Probes 5 Groups 150 Devices 856

which is also different from what the api qry returns.


Apr, 2013 - Permalink

Hi,

The API call by default only returns 500 devices. To return more, use the count parameter and add something like &count=1000 to your URL.

Regards,


Apr, 2013 - Permalink