You could change the location of the device using the API
Please use the following API call:
http://<yourserver>/api/setobjectproperty.htm?id=<objectid>&username=<youruser>&password=<yourpassword>&name=location&value=<location data>
You can alos supply a passhash instead of your password. Please take a look at the API documentation for more details.
As of PRTG Network Monitor 13.3.5.2576 or later, there is a new API call to set the geo location of an object:
/api/setlonlat.htm?id=<objectid>&username=<youruser>&password=<yourpassword>&location=<name_of_object_location>&lonlat=longitude,latitude
Provide the object ID together with the parameters for location and/or longitude and latitude.
If only the location parameter is given, the Core Server will excute the geo location lookup (this can last up to three minutes). Provide the name of the location, e.g., "New York". It will be shown in the Location settings, no matter of longitude/latitude.
If the longitude/latitude parameter is given, the marker in the map will be set to this position, no matter of the location parameter. Provide longitude and latitude separated by a comma, e.g., "-73.998672,40.714728".
Add comment