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

Location field is not populated when listing groups via API

Votes:

0

When using API to list all the groups, location field is shown as empty, even though location is explicitly specified for all groups. It works for devices that inherit locations from these groups (when listing devices with api).

The request I use to get all the groups is: /api/table.json?content=groups&output=json&columns=objid,probe,group,name,location

Sample output: {"objid":2558,"probe":"probe1","group":"remote-office2","name":"remote-office2","location":""}

api groups location

Created on Sep 29, 2016 10:39:45 PM



3 Replies

Votes:

0

Dear Komil

While the groups have a location property settings which can be inherited down to devices, only the devices themselves have a location. The group setting is just for the inheritance, and cannot be listed.

However you can still read this property for individual groups:

/api/getobjectproperty.htm?id=53&name=location

Replace the example object ID 53 with the object ID of the group in question.

Created on Sep 30, 2016 4:02:53 PM by  Arne Seifert [Paessler Support]



Votes:

0

Dear Arne,

Thank you for your prompt reply! Can you please tell if it is going to be available anytime soon? It would be very handy.

In case if not, I think it it worth updating it in API documentation (Setup->PRTG API->Live Data-> Table "Supported Output Columns"), as it states that this property is supported for both groups and devices.

Thank you!

Best regards, Komil

Created on Oct 4, 2016 3:06:07 AM



Votes:

0

Dear Komil

This documentation error will be fixed in an upcoming version.

Created on Oct 4, 2016 12:08:31 PM by  Arne Seifert [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.