Hi PRTG.

I mirrored a core installation we have of PRTG onto a second host to even out the load however someone had made changes to the location data for a number of devices and groups putting them geographically in the right place rather than our datacentre. Instead of manually re-doing this is there any way i can copy the location info database on its own from the original core installation?


Article Comments

Hi Sam,

Only by restoring the configuration backup. It's not possible to just clone the location of devices/groups. You could also iterate over the appliances via API and PowerShell:

Get all devices http://{prtghost}/api//api/table.json?id={parentid}&content=devices&output=json&columns=objid,probe,group,device&username={prtgadmin login}&passhash={his passhash} Change object location
http://{prtghost}/api/setlonlat.htm?id={objid}&location={location name}&lonlat={longitude},{latitude}&username={prtgadmin login}&passhash={his passhash} I guess restoring the configuration file is the easier route. Review the history of the objects or ask the colleague when he changed the location and restore the configuration from the previous day. In order to avoid situations like that in the future, tell them to create a config snapshot via

Setup | System Configuration | Administrative Tools | Create Configuration Snapshot

Then you can revert to the old configuration without losing (most) further changes.


Kind regards,
Stephan Linke, Tech Support Team


Feb, 2018 - Permalink

Wow thanks thats a very helpful reply. I did indeed request that snapshots be taken and that change freezes were imposed but of course these were ignored :)


Feb, 2018 - Permalink

Glad to be of help. Time to revoke administrator rights then ;)


Kind regards,
Stephan Linke, Tech Support Team


Feb, 2018 - Permalink