Dynamic geo location of object in google maps widget
Hi ! Today many devices have the ability to report gps location by f.ex. SNMP. We would like to present a more dynamic map showing f.ex vessel position based on this. I think this could by done quiet easy by giving us ability to change system.location tag from a script. This tag has to be added manually today.

Torfinn_Høiland
9 comments
Sean Stidman
@Stuart Weenig .... I just send a "Feedback" request to add auto.location support to the Map widget. Very odd that this is not already in place. I guess they expect you to either manually set the location property for thousands of devices or create an external application which uses the API. The PropertySources functionality is generally a good concept but it misses in a few areas (it should support setting properties for Instances and I'm also not sold on the "auto." thing).
LM User
It cannot yet. Please reach out to your CSM to get it upvoted. I'm dying to have this work.
Shack
I've landed on this thread today because I imported the "Public IP" property source that goes out to http://ipinfo.io/json for information and then sets those auto props on my devices. @Stuart Weenig Do I still need to upvote this by reaching out to our CSM or can you tell if the Google Map widget can use auto.location yet?
LM User
FYI, I think there is a feature request in the system to allow auto.location to also be used to populate the location for Google Map widgets. This would be the better long term solution as it would allow very simple updates to the location using existing, simple, non-API based, methods. Please reach out to your CSM to request this.
Antony Hawkins
I realise this is some years later, but if anyone else happens across this thread wondering the same thing, I wrote a DataSource that does exactly this (updates the location property, or any property, of a monitored resource) in April 2021.
It was specifically for sea-going vessels, by coincidence, and updates a defined property using the LogicMonitor REST API:
/topic/7219-location-credentials-any-custom-property-updater-datasource-framework/Joe_Tran
I chain two propertysources together--one to set an autoProp, and another to write that autoProp to location via REST API. The location property isn't prefaced by system, so it can't be set in just the one propertySource--i don't think.
In the example below, the autoProp is called "auto.loc".
Mosh
Hi @Sarah Terry
Is there any way to set the location property using a PropertySource script? My use case is that we want to assign the value to the location property based on parsing of the names of our devices.
Torfinn_Høiland
OPHi ! Thanks for this information. This method works ok but to use it I will have to script something outside Logicmonitor. I tried to do the updates via web service https request but as this can not pass any dynamic variables i am not able to send the location data.
A solution could be be to allow some variables in the web service path setting so you could do this.
Sarah Terry
You can currently add/update the location property for a device using our RPC API: http://www.logicmonitor.com/support/rpc-api-developers-guide/manage-devices/update-a-device/
You should use opType=add in your request to add the property and opType=replace to update the property.